<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Client Side Web Development</title><link>http://forums.asp.net/130.aspx</link><description>Client-side programming discussions, including CSS, DHTML, JScript/Javascript, etc. &lt;a href="http://aspadvice.com/SignUp/list.aspx?l=18&amp;c=16" target="_blank"&gt;Email List&lt;/a&gt;</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Timing of javascript execution</title><link>http://forums.asp.net/thread/2376588.aspx</link><pubDate>Fri, 23 May 2008 12:25:09 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2376588</guid><dc:creator>NC01</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2376588.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=130&amp;PostID=2376588</wfw:commentRss><description>&lt;p&gt;In my experience, attaching a process to the window.onload event has always worked.&lt;/p&gt;
&lt;p&gt;NC...&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Timing of javascript execution</title><link>http://forums.asp.net/thread/2374720.aspx</link><pubDate>Thu, 22 May 2008 17:07:13 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2374720</guid><dc:creator>Zeevik</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2374720.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=130&amp;PostID=2374720</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/fan/images/icon-quote.gif"&gt; &lt;strong&gt;jamesqua:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;The answer to your second question is yes.&amp;nbsp;
It will replace any other functions hooked to that event.&amp;nbsp; Here is a
way to &lt;a href="http://www.webreference.com/programming/javascript/onloads/"&gt;attach multiple events&lt;/a&gt;. Perhaps there is a better way to go about this.&amp;nbsp; What exactly are you trying to achieve?&lt;br /&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Thanks, this is exactly the answer to what I was asking about.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/fan/images/icon-quote.gif"&gt; &lt;strong&gt;NC01:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;/p&gt;&lt;p&gt;&lt;img src="http://forums.asp.net/emoticons/emotion-3.gif" alt="Surprise" /&gt; What are you going to sue me if it doesn&amp;#39;t? There is no way to guarantee of that. That is just not the way browsers work. 
&lt;/p&gt;&lt;p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;&lt;p&gt;No, I&amp;#39;m not american - I&amp;#39;m not into sueing. &lt;img src="http://forums.asp.net/emoticons/emotion-5.gif" alt="Wink" /&gt; The reason I was asking if &amp;quot;you guarantee&amp;quot; is because I heard from several people that attaching a script to the onload event doesn&amp;#39;t guarantee that the page (with all its elements) is going to be fully loaded by the time the script executes. So rephrasing the &amp;quot;you guarantee&amp;quot; would be &amp;quot;does it usually/always work, from your experience?&amp;quot;&lt;br /&gt;
&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/fan/images/icon-quote.gif"&gt; &lt;strong&gt;NC01:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;/p&gt;&lt;p&gt;So just put&amp;nbsp;all other scripts/functions that you want in the onload in there. 
&lt;/p&gt;&lt;p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt; &lt;/p&gt;&lt;p&gt;Unfortunately, that is not always possible &lt;img src="http://forums.asp.net/emoticons/emotion-6.gif" alt="Sad" /&gt; For example, in my case, I&amp;#39;m dealing with rather large e-commerce application that uses xml templates to generate web pages.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Timing of javascript execution</title><link>http://forums.asp.net/thread/2374651.aspx</link><pubDate>Thu, 22 May 2008 16:41:52 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2374651</guid><dc:creator>NC01</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2374651.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=130&amp;PostID=2374651</wfw:commentRss><description>&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/fan/images/icon-quote.gif"&gt; &lt;strong&gt;Zeevik:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt; 
&lt;p&gt;Are you saying it&amp;#39;s guaranteed to run only when the page is fully loaded? 
&lt;p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt; 
&lt;p&gt;&lt;img src="http://forums.asp.net/emoticons/emotion-3.gif" alt="Surprise" /&gt; What are you going to sue me if it doesn&amp;#39;t? There is no way to guarantee of that. That is just not the way browsers work. 
&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/fan/images/icon-quote.gif"&gt; &lt;strong&gt;Zeevik:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt; 
&lt;p&gt;Also, will it replace any other scripts/functions that are currently hooked up to the window onload event? If so, is there a way to append instead of replacing? 
&lt;p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt; 
&lt;p&gt;Yes it will replace any other scripts/functions that are currently hooked up to the window onload event. So just put&amp;nbsp;all other scripts/functions that you want in the onload in there. 
&lt;p&gt;NC...&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Timing of javascript execution</title><link>http://forums.asp.net/thread/2374649.aspx</link><pubDate>Thu, 22 May 2008 16:41:36 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2374649</guid><dc:creator>jamesqua</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2374649.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=130&amp;PostID=2374649</wfw:commentRss><description>The answer to your second question is yes.&amp;nbsp; It will replace any other functions hooked to that event.&amp;nbsp; Here is a way to &lt;a href="http://www.webreference.com/programming/javascript/onloads/"&gt;attach multiple events&lt;/a&gt;. Perhaps there is a better way to go about this.&amp;nbsp; What exactly are you trying to achieve?&lt;br /&gt;</description></item><item><title>Re: Timing of javascript execution</title><link>http://forums.asp.net/thread/2374588.aspx</link><pubDate>Thu, 22 May 2008 16:22:33 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2374588</guid><dc:creator>Zeevik</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2374588.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=130&amp;PostID=2374588</wfw:commentRss><description>&lt;p&gt;Are you saying it&amp;#39;s guaranteed to run only when the page is fully loaded?&lt;/p&gt;&lt;p&gt;Also, will it replace any other scripts/functions that are currently hooked up to the window onload event? If so, is there a way to append instead of replacing?&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Timing of javascript execution</title><link>http://forums.asp.net/thread/2374548.aspx</link><pubDate>Thu, 22 May 2008 16:06:13 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2374548</guid><dc:creator>NC01</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2374548.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=130&amp;PostID=2374548</wfw:commentRss><description>&lt;p&gt;&amp;lt;script type=&amp;quot;text/javascript&amp;quot;&amp;gt;&lt;br /&gt;&amp;lt;!--&lt;br /&gt;window.onload = function ()&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;// Put the code here&lt;br /&gt;}&lt;br /&gt;// --&amp;gt;&lt;br /&gt;&amp;lt;/script&amp;gt;&lt;/p&gt;
&lt;p&gt;NC...&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Timing of javascript execution</title><link>http://forums.asp.net/thread/2374526.aspx</link><pubDate>Thu, 22 May 2008 15:57:27 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2374526</guid><dc:creator>Zeevik</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2374526.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=130&amp;PostID=2374526</wfw:commentRss><description>&lt;p&gt;Yes, I am aware of &amp;quot;onload&amp;quot;, but from what I know using it with &amp;quot;body&amp;quot; doesn&amp;#39;t guarantee that the page is fully loaded.&lt;/p&gt;&lt;p&gt;And also it is supported only by: &amp;lt;body&amp;gt;, &amp;lt;frame&amp;gt;, &amp;lt;frameset&amp;gt;, &amp;lt;iframe&amp;gt;, &amp;lt;img&amp;gt;, &amp;lt;link&amp;gt;, &amp;lt;script&amp;gt;. (at least according to w3schools)&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Timing of javascript execution</title><link>http://forums.asp.net/thread/2374515.aspx</link><pubDate>Thu, 22 May 2008 15:51:01 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2374515</guid><dc:creator>jamesqua</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2374515.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=130&amp;PostID=2374515</wfw:commentRss><description>You can use the &lt;a href="http://www.w3schools.com/jsref/jsref_onload.asp"&gt;onload&lt;/a&gt; event to fire the JavaScript after an object has loaded.&lt;br /&gt;</description></item><item><title>Timing of javascript execution</title><link>http://forums.asp.net/thread/2374496.aspx</link><pubDate>Thu, 22 May 2008 15:45:13 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:2374496</guid><dc:creator>Zeevik</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/2374496.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=130&amp;PostID=2374496</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;Is there a way to force a javascript to execute at certain point in time during page rendering/loading?&lt;/p&gt;&lt;p&gt;i.e.: let&amp;#39;s say I want the script to run only after the page is fully loaded/rendered. Or, I want it to run only after a table is fully loaded. etc.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Thanks.&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>