<?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/document-ready-and-pageload-are-not-the-same/feed/" rel="self" type="application/rss+xml" />
	<link>http://encosia.com/document-ready-and-pageload-are-not-the-same/</link>
	<description>ASP.NET and AJAX code, ideas, and examples.</description>
	<lastBuildDate>Wed, 16 May 2012 23:02:53 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: Aniket</title>
		<link>http://encosia.com/document-ready-and-pageload-are-not-the-same/#comment-62908</link>
		<dc:creator>Aniket</dc:creator>
		<pubDate>Fri, 17 Feb 2012 19:06:25 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=842#comment-62908</guid>
		<description>Thanks Dave.

I was having same issue with ajax, jquery together and resolved using your article by using the pageLoad() {//initialization code}</description>
		<content:encoded><![CDATA[<p>Thanks Dave.</p>
<p>I was having same issue with ajax, jquery together and resolved using your article by using the pageLoad() {//initialization code}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pinkPanther</title>
		<link>http://encosia.com/document-ready-and-pageload-are-not-the-same/#comment-62801</link>
		<dc:creator>pinkPanther</dc:creator>
		<pubDate>Thu, 02 Feb 2012 06:58:08 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=842#comment-62801</guid>
		<description>Hi newbie in jquery/ajax here.  I cant figure out how to solve this problem.  The problem i have is, when btnSubmit is clicked, everything is working fine.  But when i click btnClear, jquery stops working.  This is a simplied version, the actual code has a gridview instead of lblMessage.  Also in actual code btnClear is in each row in the gridview.  Any pointer will be greatly appreciated:

&lt;pre lang=&quot;html&quot;&gt;
&lt;head runat=&quot;server&quot;&gt;
    &lt;title&gt;&lt;/title&gt;
    &lt;script type=&quot;text/javascript&quot; src=&quot;https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js&quot;&gt;&lt;/script&gt;
    &lt;script type=&quot;text/javascript&quot;&gt;
        

        function pageLoad() {
            $(&#039;#lnkToggle&#039;).click(function () {
                $(&#039;#div1&#039;).toggle();
            }); 
        }


    &lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
    &lt;form id=&quot;form1&quot; runat=&quot;server&quot;&gt;
    &lt;div&gt;
        &lt;a href=&quot;#&quot; id=lnkToggle onclick=&quot;return false;&quot;&gt;Toggle&lt;/a&gt;
        &lt;asp:ScriptManager ID=&quot;ScriptManager1&quot; runat=&quot;server&quot; /&gt;
        &lt;asp:UpdatePanel runat=&quot;server&quot; id=&quot;UpdatePanel1&quot; updatemode=&quot;Conditional&quot;&gt;
            &lt;Triggers&gt;
                &lt;asp:PostBackTrigger controlid=&quot;btnSubmit&quot; /&gt;
            &lt;/Triggers&gt;
            &lt;ContentTemplate&gt;

                &lt;div id=&quot;div1&quot;&gt;
                    Name: &lt;asp:TextBox ID=txtName runat=server /&gt;
                    &lt;br /&gt;
                    Age: &lt;asp:TextBox ID=txtAge runat=server /&gt;
                    &lt;asp:Button ID=btnSubmit OnClick=&quot;btnSubmit_Click&quot; Text=Submit runat=server /&gt;
                &lt;/div&gt;
                &lt;div id=div2&gt;
                    &lt;br /&gt;
                    &lt;hr /&gt;
                    Result:
                    &lt;asp:Label ID=lblMessage runat=server /&gt;
                    &lt;asp:Button ID=btnClear runat=server OnClick=&quot;btnClear_Click&quot; Text=Clear /&gt;
                &lt;/div&gt;
            &lt;/ContentTemplate&gt;
        &lt;/asp:UpdatePanel&gt;
    &lt;/div&gt;
    &lt;/form&gt;
&lt;/body&gt;
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Hi newbie in jquery/ajax here.  I cant figure out how to solve this problem.  The problem i have is, when btnSubmit is clicked, everything is working fine.  But when i click btnClear, jquery stops working.  This is a simplied version, the actual code has a gridview instead of lblMessage.  Also in actual code btnClear is in each row in the gridview.  Any pointer will be greatly appreciated:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;head</span> runat<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;server&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
    <span style="color: #009900;">&lt;title&gt;&lt;<span style="color: #66cc66;">/</span>title&gt;</span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;script</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span>script&gt;</span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;script</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
&nbsp;
&nbsp;
        function pageLoad() {
            $('#lnkToggle').click(function () {
                $('#div1').toggle();
            }); 
        }
&nbsp;
&nbsp;
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/script&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/head&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;body&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;form</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;form1&quot;</span> runat<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;server&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;div&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span>lnkToggle <span style="color: #000066;">onclick</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;return false;&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Toggle<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a&gt;</span></span>
        <span style="color: #009900;">&lt;asp:ScriptManager <span style="color: #000066;">ID</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;ScriptManager1&quot;</span> runat<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;server&quot;</span> <span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
        <span style="color: #009900;">&lt;asp:UpdatePanel runat<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;server&quot;</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;UpdatePanel1&quot;</span> updatemode<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Conditional&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
            <span style="color: #009900;">&lt;Triggers&gt;</span>
                <span style="color: #009900;">&lt;asp:PostBackTrigger controlid<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;btnSubmit&quot;</span> <span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;</span><span style="color: #66cc66;">/</span>Triggers&gt;</span>
            <span style="color: #009900;">&lt;ContentTemplate&gt;</span>
&nbsp;
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;div1&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
                    Name: <span style="color: #009900;">&lt;asp:TextBox <span style="color: #000066;">ID</span><span style="color: #66cc66;">=</span>txtName runat<span style="color: #66cc66;">=</span>server <span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
                    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;br</span> <span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
                    Age: <span style="color: #009900;">&lt;asp:TextBox <span style="color: #000066;">ID</span><span style="color: #66cc66;">=</span>txtAge runat<span style="color: #66cc66;">=</span>server <span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
                    <span style="color: #009900;">&lt;asp:Button <span style="color: #000066;">ID</span><span style="color: #66cc66;">=</span>btnSubmit <span style="color: #000066;">OnClick</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;btnSubmit_Click&quot;</span> <span style="color: #000066;">Text</span><span style="color: #66cc66;">=</span>Submit runat<span style="color: #66cc66;">=</span>server <span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/div&gt;</span></span>
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span>div2&gt;</span>
                    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;br</span> <span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
                    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;hr</span> <span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
                    Result:
                    <span style="color: #009900;">&lt;asp:<span style="color: #000066;">Label</span> <span style="color: #000066;">ID</span><span style="color: #66cc66;">=</span>lblMessage runat<span style="color: #66cc66;">=</span>server <span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
                    <span style="color: #009900;">&lt;asp:Button <span style="color: #000066;">ID</span><span style="color: #66cc66;">=</span>btnClear runat<span style="color: #66cc66;">=</span>server <span style="color: #000066;">OnClick</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;btnClear_Click&quot;</span> <span style="color: #000066;">Text</span><span style="color: #66cc66;">=</span><span style="color: #000066;">Clear</span> <span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/div&gt;</span></span>
            <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;</span><span style="color: #66cc66;">/</span>ContentTemplate&gt;</span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;</span><span style="color: #66cc66;">/</span>asp:UpdatePanel&gt;</span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/div&gt;</span></span>
    <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/form&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/body&gt;</span></span></pre></div></div>

]]></content:encoded>
	</item>
	<item>
		<title>By: Adam Spiker</title>
		<link>http://encosia.com/document-ready-and-pageload-are-not-the-same/#comment-62511</link>
		<dc:creator>Adam Spiker</dc:creator>
		<pubDate>Wed, 25 Jan 2012 21:47:35 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=842#comment-62511</guid>
		<description>T Y !!!!!!</description>
		<content:encoded><![CDATA[<p>T Y !!!!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anna</title>
		<link>http://encosia.com/document-ready-and-pageload-are-not-the-same/#comment-62504</link>
		<dc:creator>Anna</dc:creator>
		<pubDate>Wed, 25 Jan 2012 19:52:20 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=842#comment-62504</guid>
		<description>Hi Dave,

Nice article, but my problem is really unique. I have posted on many forums,but no help, i got struct with this issue from one month. Your help is really appreciated.

I have a master page a
Inside page 1 I have a grid and onclick on it it opens a new page 2
Inside page 2 i have a update panel and inside update panel I have a user control
Inside usercontrol there is a grid (third party tool Obout grid)
When a postback happens in usercontrol , my grid stops working.
it is kind of disabled.

Please help me on this.

Vani</description>
		<content:encoded><![CDATA[<p>Hi Dave,</p>
<p>Nice article, but my problem is really unique. I have posted on many forums,but no help, i got struct with this issue from one month. Your help is really appreciated.</p>
<p>I have a master page a<br />
Inside page 1 I have a grid and onclick on it it opens a new page 2<br />
Inside page 2 i have a update panel and inside update panel I have a user control<br />
Inside usercontrol there is a grid (third party tool Obout grid)<br />
When a postback happens in usercontrol , my grid stops working.<br />
it is kind of disabled.</p>
<p>Please help me on this.</p>
<p>Vani</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Ward</title>
		<link>http://encosia.com/document-ready-and-pageload-are-not-the-same/#comment-61569</link>
		<dc:creator>Dave Ward</dc:creator>
		<pubDate>Fri, 13 Jan 2012 21:44:10 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=842#comment-61569</guid>
		<description>There&#039;s nothing exactly like &lt;code&gt;pageLoad()&lt;/code&gt; in jQuery, because it doesn&#039;t have anything like the UpdatePanel either.

It depends on what&#039;s happening after the AJAX call. If you&#039;re doing something to remove the textbox from the DOM and re-create it as part of your AJAX callback, then you&#039;ll still need to reapply the datepicker afterward. The place to do that would be in the &lt;code&gt;success&lt;/code&gt; handler of that particular AJAX call.</description>
		<content:encoded><![CDATA[<p>There&#8217;s nothing exactly like <code>pageLoad()</code> in jQuery, because it doesn&#8217;t have anything like the UpdatePanel either.</p>
<p>It depends on what&#8217;s happening after the AJAX call. If you&#8217;re doing something to remove the textbox from the DOM and re-create it as part of your AJAX callback, then you&#8217;ll still need to reapply the datepicker afterward. The place to do that would be in the <code>success</code> handler of that particular AJAX call.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kleinkauff</title>
		<link>http://encosia.com/document-ready-and-pageload-are-not-the-same/#comment-61558</link>
		<dc:creator>kleinkauff</dc:creator>
		<pubDate>Fri, 13 Jan 2012 19:21:03 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=842#comment-61558</guid>
		<description>If i use only jQuery, what is the equivalent to pageLoad()? How can i reatach the datepicker function in a textbox for exemple?
 if i use only jQuery to make ajax calls, the textbox is never unbinded, correct?</description>
		<content:encoded><![CDATA[<p>If i use only jQuery, what is the equivalent to pageLoad()? How can i reatach the datepicker function in a textbox for exemple?<br />
 if i use only jQuery to make ajax calls, the textbox is never unbinded, correct?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Code.AdamJZeffer.com - Centering a pop up on a scrolled page</title>
		<link>http://encosia.com/document-ready-and-pageload-are-not-the-same/#comment-47546</link>
		<dc:creator>Code.AdamJZeffer.com - Centering a pop up on a scrolled page</dc:creator>
		<pubDate>Fri, 18 Nov 2011 23:19:57 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=842#comment-47546</guid>
		<description>[...] Thx Dave !  Encosia [...]</description>
		<content:encoded><![CDATA[<p>[...] Thx Dave !  Encosia [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: AJ</title>
		<link>http://encosia.com/document-ready-and-pageload-are-not-the-same/#comment-47543</link>
		<dc:creator>AJ</dc:creator>
		<pubDate>Fri, 18 Nov 2011 23:14:26 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=842#comment-47543</guid>
		<description>I was having this exact issue ... Have every time my page partially posted back I lost all of my js funcationality pageLoad() worked perfect. Thx!</description>
		<content:encoded><![CDATA[<p>I was having this exact issue &#8230; Have every time my page partially posted back I lost all of my js funcationality pageLoad() worked perfect. Thx!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: another .NET developer &#187; استفاده همزمان از jQuery و ASP.NET AJAX UpdatePanel</title>
		<link>http://encosia.com/document-ready-and-pageload-are-not-the-same/#comment-47058</link>
		<dc:creator>another .NET developer &#187; استفاده همزمان از jQuery و ASP.NET AJAX UpdatePanel</dc:creator>
		<pubDate>Sun, 30 Oct 2011 19:31:01 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=842#comment-47058</guid>
		<description>[...] مرجع    Categories: AJAX, jQuery, Tips Tags:         دیدگاه ها (0) بازتاب ها (0) دیدگاهتان را بنویسید بازتاب [...]</description>
		<content:encoded><![CDATA[<p>[...] مرجع    Categories: AJAX, jQuery, Tips Tags:         دیدگاه ها (0) بازتاب ها (0) دیدگاهتان را بنویسید بازتاب [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Saeed Neamati</title>
		<link>http://encosia.com/document-ready-and-pageload-are-not-the-same/#comment-47046</link>
		<dc:creator>Saeed Neamati</dc:creator>
		<pubDate>Sat, 29 Oct 2011 08:37:00 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=842#comment-47046</guid>
		<description>Man, I had a problem with Telerik&#039;s RadTreeView, in IE8, and I was searching the whole Internet to find an answer. Alas, they don&#039;t support that fine. However, by reading your post and by understanding the difference between pageLoad() and $(document).ready(), I got the clue to solve the problem. 

And, to me, Microsoft&#039;s setTimeout() seems a genus work. 

Thanks.</description>
		<content:encoded><![CDATA[<p>Man, I had a problem with Telerik&#8217;s RadTreeView, in IE8, and I was searching the whole Internet to find an answer. Alas, they don&#8217;t support that fine. However, by reading your post and by understanding the difference between pageLoad() and $(document).ready(), I got the clue to solve the problem. </p>
<p>And, to me, Microsoft&#8217;s setTimeout() seems a genus work. </p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: serkan</title>
		<link>http://encosia.com/document-ready-and-pageload-are-not-the-same/#comment-45530</link>
		<dc:creator>serkan</dc:creator>
		<pubDate>Tue, 06 Sep 2011 22:19:17 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=842#comment-45530</guid>
		<description>This is what I am looking for :) Thank you very much</description>
		<content:encoded><![CDATA[<p>This is what I am looking for :) Thank you very much</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Link.fr</title>
		<link>http://encosia.com/document-ready-and-pageload-are-not-the-same/#comment-45387</link>
		<dc:creator>Link.fr</dc:creator>
		<pubDate>Sun, 04 Sep 2011 21:49:00 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=842#comment-45387</guid>
		<description>Hello,

Thanks, this post is really interresting.

I would like to add a fix to a problem that I faced recently regarding the autopostback and the textchanged event of textboxes in a update panel : http://aelassas.free.fr/blog.html#post27

Kind regards,</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>Thanks, this post is really interresting.</p>
<p>I would like to add a fix to a problem that I faced recently regarding the autopostback and the textchanged event of textboxes in a update panel : <a href="http://aelassas.free.fr/blog.html#post27" rel="nofollow">http://aelassas.free.fr/blog.html#post27</a></p>
<p>Kind regards,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: naveen</title>
		<link>http://encosia.com/document-ready-and-pageload-are-not-the-same/#comment-45197</link>
		<dc:creator>naveen</dc:creator>
		<pubDate>Wed, 31 Aug 2011 11:44:18 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=842#comment-45197</guid>
		<description>Was doing something fancy with jQuery UI inside a ListView inside an UpdatePanel. You know the rest... :)

Was searching for the correct Sys. and stumbled upon pageLoad.
Can&#039;t remember everything you write it seems. Thanks a lot!</description>
		<content:encoded><![CDATA[<p>Was doing something fancy with jQuery UI inside a ListView inside an UpdatePanel. You know the rest&#8230; :)</p>
<p>Was searching for the correct Sys. and stumbled upon pageLoad.<br />
Can&#8217;t remember everything you write it seems. Thanks a lot!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JohnS</title>
		<link>http://encosia.com/document-ready-and-pageload-are-not-the-same/#comment-44409</link>
		<dc:creator>JohnS</dc:creator>
		<pubDate>Sat, 23 Jul 2011 22:25:02 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=842#comment-44409</guid>
		<description>I really appreciate your help. Thanks for clear answer.</description>
		<content:encoded><![CDATA[<p>I really appreciate your help. Thanks for clear answer.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Ward</title>
		<link>http://encosia.com/document-ready-and-pageload-are-not-the-same/#comment-44408</link>
		<dc:creator>Dave Ward</dc:creator>
		<pubDate>Sat, 23 Jul 2011 22:10:44 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=842#comment-44408</guid>
		<description>That&#039;s right, the &lt;code&gt;pageLoad()&lt;/code&gt; function is going to run once when any UpdatePanel refreshes (and it will also run ones on the initial page load too).  So, if your jQuery selector, &lt;code&gt;#gallery a&lt;/code&gt; matches all of those images, it will apply to them regardless of any UpdatePanel divisions.

You won&#039;t have to install any extra libraries. &lt;code&gt;pageLoad()&lt;/code&gt; is something that MicrosoftAjax.js calls automatically if it&#039;s included on the page. When you have a ScriptManager on the page (which you must have to use UpdatePanels, of course), one of the things it does is include MicrosoftAjax.js. So basically, if you&#039;ve got an UpdatePanel then you can use &lt;code&gt;pageLoad()&lt;/code&gt;.</description>
		<content:encoded><![CDATA[<p>That&#8217;s right, the <code>pageLoad()</code> function is going to run once when any UpdatePanel refreshes (and it will also run ones on the initial page load too).  So, if your jQuery selector, <code>#gallery a</code> matches all of those images, it will apply to them regardless of any UpdatePanel divisions.</p>
<p>You won&#8217;t have to install any extra libraries. <code>pageLoad()</code> is something that MicrosoftAjax.js calls automatically if it&#8217;s included on the page. When you have a ScriptManager on the page (which you must have to use UpdatePanels, of course), one of the things it does is include MicrosoftAjax.js. So basically, if you&#8217;ve got an UpdatePanel then you can use <code>pageLoad()</code>.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

