<?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>Wed, 21 Jul 2010 17:18:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
	<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>
	<item>
		<title>By: diesel</title>
		<link>http://www.tech-evangelist.com/2007/09/15/missing-image-fix/comment-page-1/#comment-10824</link>
		<dc:creator>diesel</dc:creator>
		<pubDate>Mon, 20 Apr 2009 17:39:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.tech-evangelist.com/2007/09/15/missing-image-fix/#comment-10824</guid>
		<description>It doesn&#039;t work in Chrome....</description>
		<content:encoded><![CDATA[<p>It doesn&#8217;t work in Chrome&#8230;.</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-10059</link>
		<dc:creator>Doogie</dc:creator>
		<pubDate>Mon, 17 Nov 2008 01:11:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.tech-evangelist.com/2007/09/15/missing-image-fix/#comment-10059</guid>
		<description>Hi Mick

If it is not working, then you have a coding error. I have used this on dozens of sites and never had a problem. Any JavaScript error anywhere in a page script can cause all JavaScript on the page to cease working. Use the FireFox JavaScript Error Console to pinpoint the problem.

If you are using the W3C validator to check the code, it will give you an invalid attribute error for most JavaScript events. The W3C validator only validates HTML/XHTML. It gives the same message for any Microsoft extensions that people use in their code.  

JavaScript is not very forgiving. It is case sensitive with IE, which means every character must be exactly correct. If the code is not perfect, it will not work.</description>
		<content:encoded><![CDATA[<p>Hi Mick</p>
<p>If it is not working, then you have a coding error. I have used this on dozens of sites and never had a problem. Any JavaScript error anywhere in a page script can cause all JavaScript on the page to cease working. Use the FireFox JavaScript Error Console to pinpoint the problem.</p>
<p>If you are using the W3C validator to check the code, it will give you an invalid attribute error for most JavaScript events. The W3C validator only validates HTML/XHTML. It gives the same message for any Microsoft extensions that people use in their code.  </p>
<p>JavaScript is not very forgiving. It is case sensitive with IE, which means every character must be exactly correct. If the code is not perfect, it will not work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mick</title>
		<link>http://www.tech-evangelist.com/2007/09/15/missing-image-fix/comment-page-1/#comment-10056</link>
		<dc:creator>Mick</dc:creator>
		<pubDate>Sat, 15 Nov 2008 12:43:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.tech-evangelist.com/2007/09/15/missing-image-fix/#comment-10056</guid>
		<description>Its not working onerror is not a valid attribute of img tag.</description>
		<content:encoded><![CDATA[<p>Its not working onerror is not a valid attribute of img tag.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
