<?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: Reloading Images Using JavaScript</title>
	<atom:link href="http://www.ultramegatech.com/2008/12/reloading-images-using-javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ultramegatech.com/2008/12/reloading-images-using-javascript/</link>
	<description>Web development blog</description>
	<lastBuildDate>Wed, 11 Apr 2012 03:57:31 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: David.P</title>
		<link>http://www.ultramegatech.com/2008/12/reloading-images-using-javascript/comment-page-1/#comment-1956</link>
		<dc:creator>David.P</dc:creator>
		<pubDate>Wed, 21 Mar 2012 13:31:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.ultramegatech.com/blog/?p=155#comment-1956</guid>
		<description>Hi and thanks! Please, one more question: What would the code look like if I&#039;d only want to refresh the very SAME image, and ONLY from the browser cache -- i.e. make sure that it is not re-loaded from the server?

(I&#039;d need this in order to re-start an animated gif at frame #1)</description>
		<content:encoded><![CDATA[<p>Hi and thanks! Please, one more question: What would the code look like if I&#8217;d only want to refresh the very SAME image, and ONLY from the browser cache &#8212; i.e. make sure that it is not re-loaded from the server?</p>
<p>(I&#8217;d need this in order to re-start an animated gif at frame #1)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Domi</title>
		<link>http://www.ultramegatech.com/2008/12/reloading-images-using-javascript/comment-page-1/#comment-1955</link>
		<dc:creator>Domi</dc:creator>
		<pubDate>Wed, 21 Mar 2012 01:12:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.ultramegatech.com/blog/?p=155#comment-1955</guid>
		<description>I have struggled against the issue for whole day, thanks for your pretty simple resolution.</description>
		<content:encoded><![CDATA[<p>I have struggled against the issue for whole day, thanks for your pretty simple resolution.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dmitry Tsechoev</title>
		<link>http://www.ultramegatech.com/2008/12/reloading-images-using-javascript/comment-page-1/#comment-1953</link>
		<dc:creator>Dmitry Tsechoev</dc:creator>
		<pubDate>Mon, 19 Mar 2012 07:35:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.ultramegatech.com/blog/?p=155#comment-1953</guid>
		<description>Thank you very much! This is very useful example.</description>
		<content:encoded><![CDATA[<p>Thank you very much! This is very useful example.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin Deprez</title>
		<link>http://www.ultramegatech.com/2008/12/reloading-images-using-javascript/comment-page-1/#comment-1946</link>
		<dc:creator>Kevin Deprez</dc:creator>
		<pubDate>Tue, 07 Feb 2012 10:03:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.ultramegatech.com/blog/?p=155#comment-1946</guid>
		<description>Jquery version

$.fn.reloadSrc = function(){
    var $this = $(this);
    var src = $this.attr(&quot;src&quot;);
    if(src != undefined){
        $this.attr(&quot;src&quot;, src + (src.indexOf(&#039;?&#039;) &gt;= 0 ? &quot;&amp;&quot; : &quot;?&quot;) + &quot;tq=&quot; + (new Date()).getTime());
    }
}</description>
		<content:encoded><![CDATA[<p>Jquery version</p>
<p>$.fn.reloadSrc = function(){<br />
    var $this = $(this);<br />
    var src = $this.attr(&#8220;src&#8221;);<br />
    if(src != undefined){<br />
        $this.attr(&#8220;src&#8221;, src + (src.indexOf(&#8216;?&#8217;) &gt;= 0 ? &#8220;&amp;&#8221; : &#8220;?&#8221;) + &#8220;tq=&#8221; + (new Date()).getTime());<br />
    }<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alexander Ewering</title>
		<link>http://www.ultramegatech.com/2008/12/reloading-images-using-javascript/comment-page-1/#comment-1941</link>
		<dc:creator>Alexander Ewering</dc:creator>
		<pubDate>Mon, 23 Jan 2012 12:45:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.ultramegatech.com/blog/?p=155#comment-1941</guid>
		<description>Nice hint, though very verbose code.

Optimized version:

document.getElementById(id).src = document.getElementById(id).src.split(&#039;?&#039;)[0]+&#039;?&#039;+(new Date().getTime());

(The v= isn&#039;t necessary as the parameter is not used anyway)</description>
		<content:encoded><![CDATA[<p>Nice hint, though very verbose code.</p>
<p>Optimized version:</p>
<p>document.getElementById(id).src = document.getElementById(id).src.split(&#8216;?&#8217;)[0]+&#8217;?'+(new Date().getTime());</p>
<p>(The v= isn&#8217;t necessary as the parameter is not used anyway)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Guy</title>
		<link>http://www.ultramegatech.com/2008/12/reloading-images-using-javascript/comment-page-1/#comment-1936</link>
		<dc:creator>Guy</dc:creator>
		<pubDate>Sun, 15 Jan 2012 06:53:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.ultramegatech.com/blog/?p=155#comment-1936</guid>
		<description>@the JQuery fanboy - without Javascript there would be no JQuery.</description>
		<content:encoded><![CDATA[<p>@the JQuery fanboy &#8211; without Javascript there would be no JQuery.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Xakir</title>
		<link>http://www.ultramegatech.com/2008/12/reloading-images-using-javascript/comment-page-1/#comment-1928</link>
		<dc:creator>Xakir</dc:creator>
		<pubDate>Thu, 08 Dec 2011 11:10:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.ultramegatech.com/blog/?p=155#comment-1928</guid>
		<description>Thanks a lot… helped me alot…</description>
		<content:encoded><![CDATA[<p>Thanks a lot… helped me alot…</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: alaa</title>
		<link>http://www.ultramegatech.com/2008/12/reloading-images-using-javascript/comment-page-1/#comment-1909</link>
		<dc:creator>alaa</dc:creator>
		<pubDate>Wed, 02 Nov 2011 20:16:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.ultramegatech.com/blog/?p=155#comment-1909</guid>
		<description>THANKS</description>
		<content:encoded><![CDATA[<p>THANKS</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JAVAGENIOUS</title>
		<link>http://www.ultramegatech.com/2008/12/reloading-images-using-javascript/comment-page-1/#comment-1893</link>
		<dc:creator>JAVAGENIOUS</dc:creator>
		<pubDate>Fri, 30 Sep 2011 09:29:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.ultramegatech.com/blog/?p=155#comment-1893</guid>
		<description>Hello.

Thanks for the information. It was useful to me in learning PHP</description>
		<content:encoded><![CDATA[<p>Hello.</p>
<p>Thanks for the information. It was useful to me in learning PHP</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JAVAGENIOUS</title>
		<link>http://www.ultramegatech.com/2008/12/reloading-images-using-javascript/comment-page-1/#comment-1892</link>
		<dc:creator>JAVAGENIOUS</dc:creator>
		<pubDate>Mon, 26 Sep 2011 10:28:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.ultramegatech.com/blog/?p=155#comment-1892</guid>
		<description>Thanks</description>
		<content:encoded><![CDATA[<p>Thanks</p>
]]></content:encoded>
	</item>
</channel>
</rss>

