<?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: jQuery.getScript()</title>
	<atom:link href="http://api.jquery.com/jQuery.getScript/feed/" rel="self" type="application/rss+xml" />
	<link>http://api.jquery.com/jQuery.getScript/</link>
	<description>jQuery API Reference</description>
	<lastBuildDate>Fri, 19 Aug 2011 09:06:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Gazzah</title>
		<link>http://api.jquery.com/jQuery.getScript/comment-page-1/#comment-8667</link>
		<dc:creator>Gazzah</dc:creator>
		<pubDate>Thu, 27 Jan 2011 19:51:14 +0000</pubDate>
		<guid isPermaLink="false">http://api.jquery.com/?p=299#comment-8667</guid>
		<description>Excellent - I should have remembered this from long time ago... &lt;br&gt;added the following:&lt;br&gt;           var currentTime = new Date()&lt;br&gt;           var URL = &#039;dataFiles/landSideDepartures.js?time=&#039; + currentTime.getSeconds()&lt;br&gt;           $.getScript(URL  , function () {&lt;br&gt;....&lt;br&gt;and it works a treat.&lt;br&gt;Thanks Jimlay&lt;br&gt;&lt;br&gt;Gary H&lt;br&gt;&lt;br&gt;</description>
		<content:encoded><![CDATA[<p>Excellent &#8211; I should have remembered this from long time ago&#8230; <br />added the following:<br />           var currentTime = new Date()<br />           var URL = &#39;dataFiles/landSideDepartures.js?time=&#39; + currentTime.getSeconds()<br />           $.getScript(URL  , function () {<br />&#8230;.<br />and it works a treat.<br />Thanks Jimlay</p>
<p>Gary H</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jimlay</title>
		<link>http://api.jquery.com/jQuery.getScript/comment-page-1/#comment-8643</link>
		<dc:creator>Jimlay</dc:creator>
		<pubDate>Wed, 26 Jan 2011 22:02:04 +0000</pubDate>
		<guid isPermaLink="false">http://api.jquery.com/?p=299#comment-8643</guid>
		<description>Gary,&lt;br&gt;&lt;br&gt;The simplest solution is probably to append a random string or timestamp to your request url. I had this problem and there was some discussion below about different behavior in different versions of jQuery.&lt;br&gt;&lt;br&gt;Just add ?time=TimestampToNearest30s&lt;br&gt;&lt;br&gt;Then it will cache and work to your benefit and every 30s the request will get the new value.</description>
		<content:encoded><![CDATA[<p>Gary,</p>
<p>The simplest solution is probably to append a random string or timestamp to your request url. I had this problem and there was some discussion below about different behavior in different versions of jQuery.</p>
<p>Just add ?time=TimestampToNearest30s</p>
<p>Then it will cache and work to your benefit and every 30s the request will get the new value.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gary NH</title>
		<link>http://api.jquery.com/jQuery.getScript/comment-page-1/#comment-8641</link>
		<dc:creator>Gary NH</dc:creator>
		<pubDate>Wed, 26 Jan 2011 21:24:51 +0000</pubDate>
		<guid isPermaLink="false">http://api.jquery.com/?p=299#comment-8641</guid>
		<description>I have a page that loads a script file every 30 secs (The script file is basically :&lt;br&gt;var numbers=[12,34,56,78] ) and is written by the server.&lt;br&gt;The file is caching so the data never changes. Any ideas?&lt;br&gt;&lt;br&gt;Gary H</description>
		<content:encoded><![CDATA[<p>I have a page that loads a script file every 30 secs (The script file is basically :<br />var numbers=[12,34,56,78] ) and is written by the server.<br />The file is caching so the data never changes. Any ideas?</p>
<p>Gary H</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: eager_learner</title>
		<link>http://api.jquery.com/jQuery.getScript/comment-page-1/#comment-7769</link>
		<dc:creator>eager_learner</dc:creator>
		<pubDate>Sat, 25 Dec 2010 07:16:45 +0000</pubDate>
		<guid isPermaLink="false">http://api.jquery.com/?p=299#comment-7769</guid>
		<description>Hi everyone...&lt;br&gt;The script works fine if the request is successfull...&lt;br&gt;$.getScript(&quot;test.js&quot;, function(){&lt;br&gt;   alert(&quot;Script loaded and executed.&quot;);&lt;br&gt; });&lt;br&gt;&lt;br&gt;But how can we check whether the script is successfully loaded or not... If not, i just want to halt the execution...</description>
		<content:encoded><![CDATA[<p>Hi everyone&#8230;<br />The script works fine if the request is successfull&#8230;<br />$.getScript(&#8220;test.js&#8221;, function(){<br />   alert(&#8220;Script loaded and executed.&#8221;);<br /> });</p>
<p>But how can we check whether the script is successfully loaded or not&#8230; If not, i just want to halt the execution&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ken</title>
		<link>http://api.jquery.com/jQuery.getScript/comment-page-1/#comment-7698</link>
		<dc:creator>Ken</dc:creator>
		<pubDate>Tue, 21 Dec 2010 14:34:59 +0000</pubDate>
		<guid isPermaLink="false">http://api.jquery.com/?p=299#comment-7698</guid>
		<description>Let&#039;s say I want to load a script, run it once, and then attach it to the window resize event. How would I use the script that is passed to the callback function?&lt;br&gt;&lt;br&gt;$.getScript(&#039;path/to/script.js&#039;, function(s){&lt;br&gt;       $(window).resize(function() {&lt;br&gt;          // run the script again&lt;br&gt;         });&lt;br&gt;});</description>
		<content:encoded><![CDATA[<p>Let&#39;s say I want to load a script, run it once, and then attach it to the window resize event. How would I use the script that is passed to the callback function?</p>
<p>$.getScript(&#39;path/to/script.js&#39;, function(s){<br />       $(window).resize(function() {<br />          // run the script again<br />         });<br />});</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ux_web</title>
		<link>http://api.jquery.com/jQuery.getScript/comment-page-1/#comment-7289</link>
		<dc:creator>Ux_web</dc:creator>
		<pubDate>Tue, 30 Nov 2010 23:32:11 +0000</pubDate>
		<guid isPermaLink="false">http://api.jquery.com/?p=299#comment-7289</guid>
		<description>You mean, in the loadScript options?&lt;br&gt;I think that the loadScript func does not have that option so, where do you put the code to override the &quot;cache: true&quot; ?&lt;br&gt;&lt;br&gt;Thanks</description>
		<content:encoded><![CDATA[<p>You mean, in the loadScript options?<br />I think that the loadScript func does not have that option so, where do you put the code to override the &#8220;cache: true&#8221; ?</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: indieinvader</title>
		<link>http://api.jquery.com/jQuery.getScript/comment-page-1/#comment-7276</link>
		<dc:creator>indieinvader</dc:creator>
		<pubDate>Tue, 30 Nov 2010 01:46:16 +0000</pubDate>
		<guid isPermaLink="false">http://api.jquery.com/?p=299#comment-7276</guid>
		<description>Well, in this case IE is right. `utf8` is wrong, utf-8 and UTF-8, on the other hand, are correct.</description>
		<content:encoded><![CDATA[<p>Well, in this case IE is right. `utf8` is wrong, utf-8 and UTF-8, on the other hand, are correct.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ambrauer</title>
		<link>http://api.jquery.com/jQuery.getScript/comment-page-1/#comment-7109</link>
		<dc:creator>Ambrauer</dc:creator>
		<pubDate>Fri, 19 Nov 2010 18:23:40 +0000</pubDate>
		<guid isPermaLink="false">http://api.jquery.com/?p=299#comment-7109</guid>
		<description>UPDATE - Pulled bug report here: &lt;a href=&quot;http://bugs.jquery.com/ticket/7578&quot; rel=&quot;nofollow&quot;&gt;http://bugs.jquery.com/ticket/7578&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>UPDATE &#8211; Pulled bug report here: <a href="http://bugs.jquery.com/ticket/7578" rel="nofollow">http://bugs.jquery.com/ticket/7578</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ambrauer</title>
		<link>http://api.jquery.com/jQuery.getScript/comment-page-1/#comment-7108</link>
		<dc:creator>Ambrauer</dc:creator>
		<pubDate>Fri, 19 Nov 2010 18:07:44 +0000</pubDate>
		<guid isPermaLink="false">http://api.jquery.com/?p=299#comment-7108</guid>
		<description>Looks like this changed with v1.4+. In previous versions, the current timestamp would get appended (going to look for a bug ticket, because this seems like a regression), but in the latest, it does not. The culprit seems to be this line:&lt;br&gt;if ( s.dataType == &quot;script&quot; &amp;&amp; s.cache == null )&lt;br&gt;which was updated to:&lt;br&gt;if ( s.dataType === &quot;script&quot; &amp;&amp; s.cache === null )&lt;br&gt;and no longer evaluates to true (s.cache is undefined, so == will evaluate to true, wheras === to false).</description>
		<content:encoded><![CDATA[<p>Looks like this changed with v1.4+. In previous versions, the current timestamp would get appended (going to look for a bug ticket, because this seems like a regression), but in the latest, it does not. The culprit seems to be this line:<br />if ( s.dataType == &#8220;script&#8221; &amp;&amp; s.cache == null )<br />which was updated to:<br />if ( s.dataType === &#8220;script&#8221; &amp;&amp; s.cache === null )<br />and no longer evaluates to true (s.cache is undefined, so == will evaluate to true, wheras === to false).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: CharismaSilverlight</title>
		<link>http://api.jquery.com/jQuery.getScript/comment-page-1/#comment-6804</link>
		<dc:creator>CharismaSilverlight</dc:creator>
		<pubDate>Fri, 05 Nov 2010 04:27:08 +0000</pubDate>
		<guid isPermaLink="false">http://api.jquery.com/?p=299#comment-6804</guid>
		<description>thanks..now i  remember ,sander falise comment about multiple js file was a good solution ^,^;&lt;br&gt;thankyou..i am almost feeling like on dejavu becouse i see their comment like had me seem before..oO(from this site too ^,^..already fix..don&#039;t worry..);</description>
		<content:encoded><![CDATA[<p>thanks..now i  remember ,sander falise comment about multiple js file was a good solution ^,^;<br />thankyou..i am almost feeling like on dejavu becouse i see their comment like had me seem before..oO(from this site too ^,^..already fix..don&#39;t worry..);</p>
]]></content:encoded>
	</item>
</channel>
</rss>

