<?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: A Fix for Missing or Broken Images</title>
	<atom:link href="http://www.tech-evangelist.com/2007/09/15/missing-image-fix/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tech-evangelist.com/2007/09/15/missing-image-fix/</link>
	<description>Technical Articles, Musings and Opinions from Tech-Evangelist</description>
	<lastBuildDate>Sun, 29 Jan 2012 19:09:23 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
	<item>
		<title>By: Bill Scheurer</title>
		<link>http://www.tech-evangelist.com/2007/09/15/missing-image-fix/comment-page-1/#comment-22616</link>
		<dc:creator>Bill Scheurer</dc:creator>
		<pubDate>Sun, 07 Aug 2011 16:00:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.tech-evangelist.com/2007/09/15/missing-image-fix/#comment-22616</guid>
		<description>Jonathan, you are a ninja master! I struggled many hours with this, looking at other code very similar to yours. The key with your code is passing the &quot;(source)&quot; object (I assume it could be called anything?), clearing the onerror, and returning true. That made all the difference! Ferris Buehler, you&#039;re my hero.</description>
		<content:encoded><![CDATA[<p>Jonathan, you are a ninja master! I struggled many hours with this, looking at other code very similar to yours. The key with your code is passing the &#8220;(source)&#8221; object (I assume it could be called anything?), clearing the onerror, and returning true. That made all the difference! Ferris Buehler, you&#8217;re my hero.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rupali</title>
		<link>http://www.tech-evangelist.com/2007/09/15/missing-image-fix/comment-page-1/#comment-22613</link>
		<dc:creator>rupali</dc:creator>
		<pubDate>Fri, 05 Aug 2011 12:14:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.tech-evangelist.com/2007/09/15/missing-image-fix/#comment-22613</guid>
		<description>thank you very much this is great</description>
		<content:encoded><![CDATA[<p>thank you very much this is great</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Albert</title>
		<link>http://www.tech-evangelist.com/2007/09/15/missing-image-fix/comment-page-1/#comment-22123</link>
		<dc:creator>Albert</dc:creator>
		<pubDate>Mon, 20 Jun 2011 19:50:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.tech-evangelist.com/2007/09/15/missing-image-fix/#comment-22123</guid>
		<description>what I was looking just perfect Thanks!</description>
		<content:encoded><![CDATA[<p>what I was looking just perfect Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: A simple solution for &#8220;image not available&#8221; problem &#171; a non-geek&#39;s blog</title>
		<link>http://www.tech-evangelist.com/2007/09/15/missing-image-fix/comment-page-1/#comment-12765</link>
		<dc:creator>A simple solution for &#8220;image not available&#8221; problem &#171; a non-geek&#39;s blog</dc:creator>
		<pubDate>Thu, 29 Apr 2010 09:31:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.tech-evangelist.com/2007/09/15/missing-image-fix/#comment-12765</guid>
		<description>[...] leave a comment &#187;  Is there a simple solution for problems with missing or broken images? Yes, it is. You don&#8217;t need any script, just an alternate image to display when this problem occur and the &#8220;onerror&#8221; event available with the img element. Here is an example:  &lt; img src=&quot;/path/to/image.jpg&quot; height=&quot;100px&quot; width=&quot;100px&quot; onerror=&quot;this.src = &#039;/path/to/alternate-image.png&#039;&quot; / &gt;  This simple solution was posted by Satya on his web scripting blog. Anyway, if you preffer a more elegant solution, you could use a script that dynamically detects the missing images and replace them with an alternate image. A good Java Script solution is presented on the tech evangelisit&#8217;s article. [...]</description>
		<content:encoded><![CDATA[<p>[...] leave a comment &raquo;  Is there a simple solution for problems with missing or broken images? Yes, it is. You don&#8217;t need any script, just an alternate image to display when this problem occur and the &#8220;onerror&#8221; event available with the img element. Here is an example:  &lt; img src=&quot;/path/to/image.jpg&quot; height=&quot;100px&quot; width=&quot;100px&quot; onerror=&quot;this.src = &#39;/path/to/alternate-image.png&#39;&quot; / &gt;  This simple solution was posted by Satya on his web scripting blog. Anyway, if you preffer a more elegant solution, you could use a script that dynamically detects the missing images and replace them with an alternate image. A good Java Script solution is presented on the tech evangelisit&#8217;s article. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Phill</title>
		<link>http://www.tech-evangelist.com/2007/09/15/missing-image-fix/comment-page-1/#comment-12581</link>
		<dc:creator>Phill</dc:creator>
		<pubDate>Mon, 15 Feb 2010 15:17:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.tech-evangelist.com/2007/09/15/missing-image-fix/#comment-12581</guid>
		<description>It definitely doesn&#039;t work in Safari 4.04</description>
		<content:encoded><![CDATA[<p>It definitely doesn&#8217;t work in Safari 4.04</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: FLASH</title>
		<link>http://www.tech-evangelist.com/2007/09/15/missing-image-fix/comment-page-1/#comment-11756</link>
		<dc:creator>FLASH</dc:creator>
		<pubDate>Tue, 06 Oct 2009 09:53:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.tech-evangelist.com/2007/09/15/missing-image-fix/#comment-11756</guid>
		<description>I found this method, might more simple

onError=&quot;this.src=images/no-image-100px.gif&quot;</description>
		<content:encoded><![CDATA[<p>I found this method, might more simple</p>
<p>onError=&#8221;this.src=images/no-image-100px.gif&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Doogie</title>
		<link>http://www.tech-evangelist.com/2007/09/15/missing-image-fix/comment-page-1/#comment-11377</link>
		<dc:creator>Doogie</dc:creator>
		<pubDate>Wed, 08 Jul 2009 13:05:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.tech-evangelist.com/2007/09/15/missing-image-fix/#comment-11377</guid>
		<description>Hi Mike

That would be necessary if your image directory is not just level below the root directory, but is below a subdirectory containing the script being executed.  However, if the images directory is off the root directory and your script is in the root directory, it should not matter. 

The reason that the script is written to be &quot;root relative&quot; is so that the script can be used universally throughout a site, regardless of which directory the scripts are running from. 

Whatever worked for your situation is what is important. :D</description>
		<content:encoded><![CDATA[<p>Hi Mike</p>
<p>That would be necessary if your image directory is not just level below the root directory, but is below a subdirectory containing the script being executed.  However, if the images directory is off the root directory and your script is in the root directory, it should not matter. </p>
<p>The reason that the script is written to be &#8220;root relative&#8221; is so that the script can be used universally throughout a site, regardless of which directory the scripts are running from. </p>
<p>Whatever worked for your situation is what is important. <img src='http://www.tech-evangelist.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://www.tech-evangelist.com/2007/09/15/missing-image-fix/comment-page-1/#comment-11371</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Tue, 07 Jul 2009 01:26:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.tech-evangelist.com/2007/09/15/missing-image-fix/#comment-11371</guid>
		<description>Hi, I just had to make 1 little change.. removed first forward slash &quot;/&quot; like src=&quot;images/ NOT src=&quot;/images/ in java script too.


function onImgErrorSmall(source)
{
source.src = &quot;images/no-image-100px.gif&quot;;
// disable onerror to prevent endless loop
source.onerror = &quot;&quot;;
return true;
}


</description>
		<content:encoded><![CDATA[<p>Hi, I just had to make 1 little change.. removed first forward slash &#8220;/&#8221; like src=&#8221;images/ NOT src=&#8221;/images/ in java script too.</p>
<p>function onImgErrorSmall(source)<br />
{<br />
source.src = &#8220;images/no-image-100px.gif&#8221;;<br />
// disable onerror to prevent endless loop<br />
source.onerror = &#8220;&#8221;;<br />
return true;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Online Poker Tutor</title>
		<link>http://www.tech-evangelist.com/2007/09/15/missing-image-fix/comment-page-1/#comment-10838</link>
		<dc:creator>Online Poker Tutor</dc:creator>
		<pubDate>Thu, 23 Apr 2009 21:58:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.tech-evangelist.com/2007/09/15/missing-image-fix/#comment-10838</guid>
		<description>Works perfectly.. thanks for the script and information on how to use it.

Tested in FF3, IE8 and Chrome</description>
		<content:encoded><![CDATA[<p>Works perfectly.. thanks for the script and information on how to use it.</p>
<p>Tested in FF3, IE8 and Chrome</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Doogie</title>
		<link>http://www.tech-evangelist.com/2007/09/15/missing-image-fix/comment-page-1/#comment-10827</link>
		<dc:creator>Doogie</dc:creator>
		<pubDate>Mon, 20 Apr 2009 22:05:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.tech-evangelist.com/2007/09/15/missing-image-fix/#comment-10827</guid>
		<description>It was written long before Chrome was developed. However, I just checked it in Chrome and it is working fine on my sites. 

If it isn&#039;t working on your site, you may have a JavaScript typo or you could be running a beta copy of Chrome. Make sure that your version of Chrome is current.</description>
		<content:encoded><![CDATA[<p>It was written long before Chrome was developed. However, I just checked it in Chrome and it is working fine on my sites. </p>
<p>If it isn&#8217;t working on your site, you may have a JavaScript typo or you could be running a beta copy of Chrome. Make sure that your version of Chrome is current.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

