<?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: How you can force the Ajax Script Loader to use jQuery 1.4</title>
	<atom:link href="http://encosia.com/2010/01/15/how-you-can-force-the-ajax-script-loader-to-use-jquery-1-4/feed/" rel="self" type="application/rss+xml" />
	<link>http://encosia.com/2010/01/15/how-you-can-force-the-ajax-script-loader-to-use-jquery-1-4/</link>
	<description>ASP.NET and AJAX code, ideas, and examples.</description>
	<lastBuildDate>Thu, 09 Sep 2010 14:51:45 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Ricardo</title>
		<link>http://encosia.com/2010/01/15/how-you-can-force-the-ajax-script-loader-to-use-jquery-1-4/#comment-39358</link>
		<dc:creator>Ricardo</dc:creator>
		<pubDate>Tue, 13 Jul 2010 22:57:53 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=962#comment-39358</guid>
		<description>Great post! By the way you can also add some shorcut to &quot;onReady&quot;, check this!

&lt;pre lang=&quot;javascript&quot;&gt;
// Instruct the script loader to request
//  jQuery and jQuery Validate in the background,
//  The callback runs later, after both jQuery
//  and jQuery Validate have been loaded.
Sys.require([Sys.scripts.jQuery, Sys.scripts.jQueryValidate], function() {
  console.log(&quot;Loaded jQuery &quot; + jQuery.fn.jquery);   
 });
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Great post! By the way you can also add some shorcut to &#8220;onReady&#8221;, check this!</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #006600; font-style: italic;">// Instruct the script loader to request</span>
<span style="color: #006600; font-style: italic;">//  jQuery and jQuery Validate in the background,</span>
<span style="color: #006600; font-style: italic;">//  The callback runs later, after both jQuery</span>
<span style="color: #006600; font-style: italic;">//  and jQuery Validate have been loaded.</span>
Sys.<span style="color: #660066;">require</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#91;</span>Sys.<span style="color: #660066;">scripts</span>.<span style="color: #660066;">jQuery</span><span style="color: #339933;">,</span> Sys.<span style="color: #660066;">scripts</span>.<span style="color: #660066;">jQueryValidate</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
  console.<span style="color: #660066;">log</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;Loaded jQuery &quot;</span> <span style="color: #339933;">+</span> jQuery.<span style="color: #660066;">fn</span>.<span style="color: #660066;">jquery</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>   
 <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan Maloney</title>
		<link>http://encosia.com/2010/01/15/how-you-can-force-the-ajax-script-loader-to-use-jquery-1-4/#comment-38484</link>
		<dc:creator>Ryan Maloney</dc:creator>
		<pubDate>Thu, 22 Apr 2010 12:59:25 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=962#comment-38484</guid>
		<description>Thanks for the fast response and the heads up on the future of start.js.</description>
		<content:encoded><![CDATA[<p>Thanks for the fast response and the heads up on the future of start.js.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Ward</title>
		<link>http://encosia.com/2010/01/15/how-you-can-force-the-ajax-script-loader-to-use-jquery-1-4/#comment-38476</link>
		<dc:creator>Dave Ward</dc:creator>
		<pubDate>Thu, 22 Apr 2010 00:10:04 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=962#comment-38476</guid>
		<description>There&#039;s a copy of start.js at this location:

http://ajax.microsoft.com/ajax/act/40412/start.js

Long-term, I think they&#039;re focusing on a more generalized version of start.js&#039; script loader that would work easier in conjunction with jQuery or even be part of jQuery core. So, maybe not scraping it, so much as revamping it.</description>
		<content:encoded><![CDATA[<p>There&#8217;s a copy of start.js at this location:</p>
<p><a href="http://ajax.microsoft.com/ajax/act/40412/start.js" rel="nofollow">http://ajax.microsoft.com/ajax/act/40412/start.js</a></p>
<p>Long-term, I think they&#8217;re focusing on a more generalized version of start.js&#8217; script loader that would work easier in conjunction with jQuery or even be part of jQuery core. So, maybe not scraping it, so much as revamping it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan Maloney</title>
		<link>http://encosia.com/2010/01/15/how-you-can-force-the-ajax-script-loader-to-use-jquery-1-4/#comment-38473</link>
		<dc:creator>Ryan Maloney</dc:creator>
		<pubDate>Wed, 21 Apr 2010 21:16:45 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=962#comment-38473</guid>
		<description>Do you know what happened to the script loader since the VS2010 release?  I know the Ajax Library was merged with the control toolkit but there is no where on the microsoft cdn anymore to get a reference to start.js.  I grabbed the toolkit source and it looks like they have a reference to start.js but it is buried in the site demo.  I can&#039;t find documentation anywhere.  Is Microsoft scrapping this?</description>
		<content:encoded><![CDATA[<p>Do you know what happened to the script loader since the VS2010 release?  I know the Ajax Library was merged with the control toolkit but there is no where on the microsoft cdn anymore to get a reference to start.js.  I grabbed the toolkit source and it looks like they have a reference to start.js but it is buried in the site demo.  I can&#8217;t find documentation anywhere.  Is Microsoft scrapping this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Ward</title>
		<link>http://encosia.com/2010/01/15/how-you-can-force-the-ajax-script-loader-to-use-jquery-1-4/#comment-38019</link>
		<dc:creator>Dave Ward</dc:creator>
		<pubDate>Thu, 11 Feb 2010 17:45:36 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=962#comment-38019</guid>
		<description>Personally, I&#039;ve almost always used script elements. Going forward, I suspect I&#039;ll be using the script loader often.

The patterns and practices &lt;a href=&quot;http://webclientguidance.codeplex.com/&quot; rel=&quot;nofollow&quot;&gt;&quot;V.Next&quot; web guidance&lt;/a&gt; is going to include a document that discusses methods for including scripts, and the sample application makes heavy use of the script loader (which led to discovering and finding solutions for interesting real-world problems around using it).</description>
		<content:encoded><![CDATA[<p>Personally, I&#8217;ve almost always used script elements. Going forward, I suspect I&#8217;ll be using the script loader often.</p>
<p>The patterns and practices <a href="http://webclientguidance.codeplex.com/" rel="nofollow">&#8220;V.Next&#8221; web guidance</a> is going to include a document that discusses methods for including scripts, and the sample application makes heavy use of the script loader (which led to discovering and finding solutions for interesting real-world problems around using it).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Robbins</title>
		<link>http://encosia.com/2010/01/15/how-you-can-force-the-ajax-script-loader-to-use-jquery-1-4/#comment-37965</link>
		<dc:creator>David Robbins</dc:creator>
		<pubDate>Thu, 04 Feb 2010 15:37:22 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=962#comment-37965</guid>
		<description>It seems to me that there are several pathways or approaches to encorporating jQuery into ASP.Net, whether it be MS Ajax with ScriptManager, a simple reference in your WebForm, etc.  I&#039;ve read your series for about a year now on different techniques and wondered if you considered putting a road map of the different approaches, and maybe links to the posts respective to each &quot;style&quot;?  Maybe a permanent page?

Anyway, I enjoyed the post as always.</description>
		<content:encoded><![CDATA[<p>It seems to me that there are several pathways or approaches to encorporating jQuery into ASP.Net, whether it be MS Ajax with ScriptManager, a simple reference in your WebForm, etc.  I&#8217;ve read your series for about a year now on different techniques and wondered if you considered putting a road map of the different approaches, and maybe links to the posts respective to each &#8220;style&#8221;?  Maybe a permanent page?</p>
<p>Anyway, I enjoyed the post as always.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Ward</title>
		<link>http://encosia.com/2010/01/15/how-you-can-force-the-ajax-script-loader-to-use-jquery-1-4/#comment-37935</link>
		<dc:creator>Dave Ward</dc:creator>
		<pubDate>Mon, 01 Feb 2010 16:56:05 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=962#comment-37935</guid>
		<description>I agree that it should be consistent.  I&#039;m not sure why they chose to always use the CDN.</description>
		<content:encoded><![CDATA[<p>I agree that it should be consistent.  I&#8217;m not sure why they chose to always use the CDN.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robin Webb</title>
		<link>http://encosia.com/2010/01/15/how-you-can-force-the-ajax-script-loader-to-use-jquery-1-4/#comment-37931</link>
		<dc:creator>Robin Webb</dc:creator>
		<pubDate>Mon, 01 Feb 2010 15:39:12 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=962#comment-37931</guid>
		<description>Thanks for your replies to my questions Dave - very useful.

I&#039;m still not clear on why the start.js contains a hard coded reference to ajax.microsoft.com/ajax for jQuery when the other Microsoft libraries react to the location of start.js (local or CDN).

&lt;pre lang=&quot;javascript&quot;&gt;var ajaxPath = (window.location.protocol === &quot;https&quot; ? &quot;https&quot; : &quot;http&quot;) + &quot;://ajax.microsoft.com/ajax/&quot;;&lt;/pre&gt;

Is this by design?</description>
		<content:encoded><![CDATA[<p>Thanks for your replies to my questions Dave &#8211; very useful.</p>
<p>I&#8217;m still not clear on why the start.js contains a hard coded reference to ajax.microsoft.com/ajax for jQuery when the other Microsoft libraries react to the location of start.js (local or CDN).</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">var</span> ajaxPath <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span>window.<span style="color: #660066;">location</span>.<span style="color: #660066;">protocol</span> <span style="color: #339933;">===</span> <span style="color: #3366CC;">&quot;https&quot;</span> <span style="color: #339933;">?</span> <span style="color: #3366CC;">&quot;https&quot;</span> <span style="color: #339933;">:</span> <span style="color: #3366CC;">&quot;http&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">+</span> <span style="color: #3366CC;">&quot;://ajax.microsoft.com/ajax/&quot;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Is this by design?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Ward</title>
		<link>http://encosia.com/2010/01/15/how-you-can-force-the-ajax-script-loader-to-use-jquery-1-4/#comment-37930</link>
		<dc:creator>Dave Ward</dc:creator>
		<pubDate>Mon, 01 Feb 2010 15:20:11 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=962#comment-37930</guid>
		<description>1.  When the script loader injects a &lt;script&gt; element, the browser can still act on that by loading a cached version if appropriate.  That still depends on the expires header, as usual.

2. You can use this same &quot;patching&quot; approach to change the reference to a local location, or edit the script definitions in start.js.  Alternatively, you could define a new jQueryLocal script definition with loader.defineScripts().

3. Yes.  It&#039;s not as sophisticated (e.g. how would you handle loading two scripts with dependencies using $.getScript), but uses the same type of asynchronous loading approach.</description>
		<content:encoded><![CDATA[<p>1.  When the script loader injects a &lt;script&gt; element, the browser can still act on that by loading a cached version if appropriate.  That still depends on the expires header, as usual.</p>
<p>2. You can use this same &#8220;patching&#8221; approach to change the reference to a local location, or edit the script definitions in start.js.  Alternatively, you could define a new jQueryLocal script definition with loader.defineScripts().</p>
<p>3. Yes.  It&#8217;s not as sophisticated (e.g. how would you handle loading two scripts with dependencies using $.getScript), but uses the same type of asynchronous loading approach.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Robin Webb</title>
		<link>http://encosia.com/2010/01/15/how-you-can-force-the-ajax-script-loader-to-use-jquery-1-4/#comment-37928</link>
		<dc:creator>Robin Webb</dc:creator>
		<pubDate>Mon, 01 Feb 2010 14:41:26 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=962#comment-37928</guid>
		<description>Thanks for another very useful article.

I&#039;ve just started to see the light with the ajax client script loader and there are obvious benefits.

Three questions:

1. Does the script loader consider locally cached versions of the scripts, i.e. on my PC (C:\Documents and Settings\administrator\Local Settings\Temporary Internet Files)? Would it consider this before downloading from a CDN/local web server?

2. I noticed that pointing start.js at a local web server () pulls in local versions of the Microsoft scripts but uses the CDN URL for jQuery. Why is this? And what is the best way to override? I have an intranet web server that has no internet access and therefore no CDN access, which is a problem if the start.js is hard coded into the 1.3.2 path on a CDN.

3. Is the jQuery ($.getScript...) doing something similar to the loader, i.e. asnychnronous loading of scripts?</description>
		<content:encoded><![CDATA[<p>Thanks for another very useful article.</p>
<p>I&#8217;ve just started to see the light with the ajax client script loader and there are obvious benefits.</p>
<p>Three questions:</p>
<p>1. Does the script loader consider locally cached versions of the scripts, i.e. on my PC (C:\Documents and Settings\administrator\Local Settings\Temporary Internet Files)? Would it consider this before downloading from a CDN/local web server?</p>
<p>2. I noticed that pointing start.js at a local web server () pulls in local versions of the Microsoft scripts but uses the CDN URL for jQuery. Why is this? And what is the best way to override? I have an intranet web server that has no internet access and therefore no CDN access, which is a problem if the start.js is hard coded into the 1.3.2 path on a CDN.</p>
<p>3. Is the jQuery ($.getScript&#8230;) doing something similar to the loader, i.e. asnychnronous loading of scripts?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ashfaq</title>
		<link>http://encosia.com/2010/01/15/how-you-can-force-the-ajax-script-loader-to-use-jquery-1-4/#comment-37859</link>
		<dc:creator>Ashfaq</dc:creator>
		<pubDate>Mon, 25 Jan 2010 02:52:06 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=962#comment-37859</guid>
		<description>Thanks for another useful post. I changed the start.js while working, but I liked your last way of coding(using google CDN). Keep up the good work and make our life easy with post like this:).Thanks again.</description>
		<content:encoded><![CDATA[<p>Thanks for another useful post. I changed the start.js while working, but I liked your last way of coding(using google CDN). Keep up the good work and make our life easy with post like this:).Thanks again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 網站製作學習誌 &#187; [Web] 連結分享</title>
		<link>http://encosia.com/2010/01/15/how-you-can-force-the-ajax-script-loader-to-use-jquery-1-4/#comment-37849</link>
		<dc:creator>網站製作學習誌 &#187; [Web] 連結分享</dc:creator>
		<pubDate>Sat, 23 Jan 2010 02:04:33 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=962#comment-37849</guid>
		<description>[...] How you can force the Ajax Script Loader to use jQuery 1.4 [...]</description>
		<content:encoded><![CDATA[<p>[...] How you can force the Ajax Script Loader to use jQuery 1.4 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sitoto</title>
		<link>http://encosia.com/2010/01/15/how-you-can-force-the-ajax-script-loader-to-use-jquery-1-4/#comment-37824</link>
		<dc:creator>sitoto</dc:creator>
		<pubDate>Thu, 21 Jan 2010 01:06:09 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=962#comment-37824</guid>
		<description>Thanks</description>
		<content:encoded><![CDATA[<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan Maloney</title>
		<link>http://encosia.com/2010/01/15/how-you-can-force-the-ajax-script-loader-to-use-jquery-1-4/#comment-37807</link>
		<dc:creator>Ryan Maloney</dc:creator>
		<pubDate>Mon, 18 Jan 2010 13:10:55 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=962#comment-37807</guid>
		<description>Thanks Dave.  Your posts are always concise and right on the money.  I love your blog.</description>
		<content:encoded><![CDATA[<p>Thanks Dave.  Your posts are always concise and right on the money.  I love your blog.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jQuery 1.4 Released: Sneak Peek on New Features and Enhancements &#124; Afif Fattouh - Web Specialist</title>
		<link>http://encosia.com/2010/01/15/how-you-can-force-the-ajax-script-loader-to-use-jquery-1-4/#comment-37799</link>
		<dc:creator>jQuery 1.4 Released: Sneak Peek on New Features and Enhancements &#124; Afif Fattouh - Web Specialist</dc:creator>
		<pubDate>Sun, 17 Jan 2010 13:38:37 +0000</pubDate>
		<guid isPermaLink="false">http://encosia.com/?p=962#comment-37799</guid>
		<description>[...] How you can force the Ajax Script Loader to use jQuery 1.4 [...]</description>
		<content:encoded><![CDATA[<p>[...] How you can force the Ajax Script Loader to use jQuery 1.4 [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
