<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: $(document).ready() and pageLoad() are not the same!</title>
	<atom:link href="http://encosia.com/2009/03/25/document-ready-and-pageload-are-not-the-same/feed/" rel="self" type="application/rss+xml" />
	<link>http://encosia.com/2009/03/25/document-ready-and-pageload-are-not-the-same/</link>
	<description>ASP.NET and AJAX code, ideas, and examples.</description>
	<lastBuildDate>Sun, 14 Mar 2010 13:33:46 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Tobbe</title>
		<link>http://encosia.com/2009/03/25/document-ready-and-pageload-are-not-the-same/#comment-38247</link>
		<dc:creator>Tobbe</dc:creator>
		<pubDate>Thu, 11 Mar 2010 06:55:26 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=842#comment-38247</guid>
		<description>Thanks! Helped me a lot. Great blog</description>
		<content:encoded><![CDATA[<p>Thanks! Helped me a lot. Great blog</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: German</title>
		<link>http://encosia.com/2009/03/25/document-ready-and-pageload-are-not-the-same/#comment-37607</link>
		<dc:creator>German</dc:creator>
		<pubDate>Thu, 17 Dec 2009 16:22:51 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=842#comment-37607</guid>
		<description>Hello, See this.

        $(document).ready(function() {
            iniciareventos();

            var scriptManager = Sys.WebForms.PageRequestManager.getInstance();
            if (scriptManager) {
                scriptManager.add_endRequest(eventosP);
            }
        });

        function eventosP() {

            $(&quot;.x&quot;).click(popmsg);
            $(&quot;.xx&quot;).click(popmsg);
            $(&quot;.xxx&quot;).click(popmsg);
            $(&quot;#logo&quot;).click(logocl);
        }

        function iniciareventos() {


            $(&quot;#logo&quot;).hide();
            $(&quot;#comu&quot;).hide();
            $(&quot;#estadisticas&quot;).hide();
            $(&quot;#trabasignados&quot;).hide();
            $(&quot;#graficos&quot;).hide();
            $(document).ready(mostrar);
            eventosP();

        }</description>
		<content:encoded><![CDATA[<p>Hello, See this.</p>
<p>        $(document).ready(function() {<br />
            iniciareventos();</p>
<p>            var scriptManager = Sys.WebForms.PageRequestManager.getInstance();<br />
            if (scriptManager) {<br />
                scriptManager.add_endRequest(eventosP);<br />
            }<br />
        });</p>
<p>        function eventosP() {</p>
<p>            $(&#8220;.x&#8221;).click(popmsg);<br />
            $(&#8220;.xx&#8221;).click(popmsg);<br />
            $(&#8220;.xxx&#8221;).click(popmsg);<br />
            $(&#8220;#logo&#8221;).click(logocl);<br />
        }</p>
<p>        function iniciareventos() {</p>
<p>            $(&#8220;#logo&#8221;).hide();<br />
            $(&#8220;#comu&#8221;).hide();<br />
            $(&#8220;#estadisticas&#8221;).hide();<br />
            $(&#8220;#trabasignados&#8221;).hide();<br />
            $(&#8220;#graficos&#8221;).hide();<br />
            $(document).ready(mostrar);<br />
            eventosP();</p>
<p>        }</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shwetha</title>
		<link>http://encosia.com/2009/03/25/document-ready-and-pageload-are-not-the-same/#comment-37023</link>
		<dc:creator>Shwetha</dc:creator>
		<pubDate>Fri, 13 Nov 2009 10:00:58 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=842#comment-37023</guid>
		<description>nice article..</description>
		<content:encoded><![CDATA[<p>nice article..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Deeeep</title>
		<link>http://encosia.com/2009/03/25/document-ready-and-pageload-are-not-the-same/#comment-36718</link>
		<dc:creator>Deeeep</dc:creator>
		<pubDate>Mon, 12 Oct 2009 10:31:47 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=842#comment-36718</guid>
		<description>Great post man!</description>
		<content:encoded><![CDATA[<p>Great post man!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lee Englestone</title>
		<link>http://encosia.com/2009/03/25/document-ready-and-pageload-are-not-the-same/#comment-36548</link>
		<dc:creator>Lee Englestone</dc:creator>
		<pubDate>Fri, 25 Sep 2009 15:16:29 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=842#comment-36548</guid>
		<description>Great post man!

-- Lee</description>
		<content:encoded><![CDATA[<p>Great post man!</p>
<p>&#8211; Lee</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: RIchardG</title>
		<link>http://encosia.com/2009/03/25/document-ready-and-pageload-are-not-the-same/#comment-35893</link>
		<dc:creator>RIchardG</dc:creator>
		<pubDate>Tue, 21 Jul 2009 20:48:33 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=842#comment-35893</guid>
		<description>Great post

Using pageLoad is ok for date picker and JQuery, but it does not appear to work in Chrome / Safari, only IE.

Richard</description>
		<content:encoded><![CDATA[<p>Great post</p>
<p>Using pageLoad is ok for date picker and JQuery, but it does not appear to work in Chrome / Safari, only IE.</p>
<p>Richard</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: n00dles</title>
		<link>http://encosia.com/2009/03/25/document-ready-and-pageload-are-not-the-same/#comment-35840</link>
		<dc:creator>n00dles</dc:creator>
		<pubDate>Thu, 16 Jul 2009 08:23:32 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=842#comment-35840</guid>
		<description>Good article!</description>
		<content:encoded><![CDATA[<p>Good article!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Deepak Gupta</title>
		<link>http://encosia.com/2009/03/25/document-ready-and-pageload-are-not-the-same/#comment-35490</link>
		<dc:creator>Deepak Gupta</dc:creator>
		<pubDate>Fri, 05 Jun 2009 21:06:23 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=842#comment-35490</guid>
		<description>Excellent post. Solved my problem. 

Thanks a lot buddy...</description>
		<content:encoded><![CDATA[<p>Excellent post. Solved my problem. </p>
<p>Thanks a lot buddy&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alek Davis</title>
		<link>http://encosia.com/2009/03/25/document-ready-and-pageload-are-not-the-same/#comment-35094</link>
		<dc:creator>Alek Davis</dc:creator>
		<pubDate>Sat, 25 Apr 2009 04:15:29 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=842#comment-35094</guid>
		<description>Excellent post! Very helpful. Thank you, Dave.</description>
		<content:encoded><![CDATA[<p>Excellent post! Very helpful. Thank you, Dave.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Milan Negovan</title>
		<link>http://encosia.com/2009/03/25/document-ready-and-pageload-are-not-the-same/#comment-34761</link>
		<dc:creator>Milan Negovan</dc:creator>
		<pubDate>Sun, 05 Apr 2009 17:01:55 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=842#comment-34761</guid>
		<description>Great post, Dave!

If it&#039;s of any help, I put together &lt;a href=&quot;http://aspnetresources.com/blog/ms_ajax_client__life_cycle_events_cheat_sheet_2.aspx&quot; rel=&quot;nofollow&quot;&gt;a &quot;cheat sheet&quot;&lt;/a&gt; with client life-cycle events a while back. I also wrote a similar post on &lt;a href=&quot;http://aspnetresources.com/blog/sys_application_add_load_vs_window_onload.aspx&quot; rel=&quot;nofollow&quot;&gt;Sys.Application.add_load vs window.onload&lt;/a&gt;.

Cheers!
Milan</description>
		<content:encoded><![CDATA[<p>Great post, Dave!</p>
<p>If it&#8217;s of any help, I put together <a href="http://aspnetresources.com/blog/ms_ajax_client__life_cycle_events_cheat_sheet_2.aspx" rel="nofollow">a &#8220;cheat sheet&#8221;</a> with client life-cycle events a while back. I also wrote a similar post on <a href="http://aspnetresources.com/blog/sys_application_add_load_vs_window_onload.aspx" rel="nofollow">Sys.Application.add_load vs window.onload</a>.</p>
<p>Cheers!<br />
Milan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: R.L.</title>
		<link>http://encosia.com/2009/03/25/document-ready-and-pageload-are-not-the-same/#comment-34743</link>
		<dc:creator>R.L.</dc:creator>
		<pubDate>Fri, 03 Apr 2009 13:50:50 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=842#comment-34743</guid>
		<description>I&#039;m using jQuery now to handle things like highlighting table rows when they&#039;re rolled over.

So, before I read your post, I was solving the problem by sending back script to re-run document.ready() in server-side event handlers. Works... but obviously, your solution is WAY better!

So--THANKS!</description>
		<content:encoded><![CDATA[<p>I&#8217;m using jQuery now to handle things like highlighting table rows when they&#8217;re rolled over.</p>
<p>So, before I read your post, I was solving the problem by sending back script to re-run document.ready() in server-side event handlers. Works&#8230; but obviously, your solution is WAY better!</p>
<p>So&#8211;THANKS!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sys.Application initialization steps &#171; Update Panel .NET</title>
		<link>http://encosia.com/2009/03/25/document-ready-and-pageload-are-not-the-same/#comment-34703</link>
		<dc:creator>Sys.Application initialization steps &#171; Update Panel .NET</dc:creator>
		<pubDate>Wed, 01 Apr 2009 08:20:14 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=842#comment-34703</guid>
		<description>[...] $(document).ready() and pageLoad() are not the same! [...]</description>
		<content:encoded><![CDATA[<p>[...] $(document).ready() and pageLoad() are not the same! [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://encosia.com/2009/03/25/document-ready-and-pageload-are-not-the-same/#comment-34651</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Thu, 26 Mar 2009 14:35:03 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=842#comment-34651</guid>
		<description>Thanks for the quick reply, just found it on the reference also... good to have confirmation, I forgot to mention I do want it to run also on the initial load, this is perfect.</description>
		<content:encoded><![CDATA[<p>Thanks for the quick reply, just found it on the reference also&#8230; good to have confirmation, I forgot to mention I do want it to run also on the initial load, this is perfect.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Ward</title>
		<link>http://encosia.com/2009/03/25/document-ready-and-pageload-are-not-the-same/#comment-34650</link>
		<dc:creator>Dave Ward</dc:creator>
		<pubDate>Thu, 26 Mar 2009 14:26:13 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=842#comment-34650</guid>
		<description>Application.add_load() allows you to handle that same event without using pageLoad().  pageLoad() is called immediately after all of the handlers registered through Application.add_load().

If you &lt;em&gt;only&lt;/em&gt; want to run code after partial postbacks, not also the initial load, PageRequestManager.EndRequest may be a more appropriate event for your control.</description>
		<content:encoded><![CDATA[<p>Application.add_load() allows you to handle that same event without using pageLoad().  pageLoad() is called immediately after all of the handlers registered through Application.add_load().</p>
<p>If you <em>only</em> want to run code after partial postbacks, not also the initial load, PageRequestManager.EndRequest may be a more appropriate event for your control.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://encosia.com/2009/03/25/document-ready-and-pageload-are-not-the-same/#comment-34649</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Thu, 26 Mar 2009 14:20:02 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=842#comment-34649</guid>
		<description>Hi,

Thanks for the detailed article.

In writing a self-contained server control that requires code to run after every partial postback I am using pageLoad() but I would like to have some input as to which is the best way to subscribe to this event being mindful that the host page might define its own pageLoad() and other server controls might also need to independently subscribe to it also.

Also R, thanks for the tip with the args.

Regards,

Chris.-</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Thanks for the detailed article.</p>
<p>In writing a self-contained server control that requires code to run after every partial postback I am using pageLoad() but I would like to have some input as to which is the best way to subscribe to this event being mindful that the host page might define its own pageLoad() and other server controls might also need to independently subscribe to it also.</p>
<p>Also R, thanks for the tip with the args.</p>
<p>Regards,</p>
<p>Chris.-</p>
]]></content:encoded>
	</item>
</channel>
</rss>
