<?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: The HTML  &lt;IMG&gt; tag and &#8220;Onload&#8221; event bugs in IE</title>
	<atom:link href="http://cdonner.com/the-html-img-tag-and-onload-event-bugs-in-ie.htm/feed" rel="self" type="application/rss+xml" />
	<link>http://cdonner.com/the-html-img-tag-and-onload-event-bugs-in-ie.htm</link>
	<description>We know accurately only when we know little, with knowledge doubt increases.  (Goethe)</description>
	<lastBuildDate>Mon, 06 Feb 2012 12:46:30 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Dirk Dittmar</title>
		<link>http://cdonner.com/the-html-img-tag-and-onload-event-bugs-in-ie.htm/comment-page-1#comment-6107</link>
		<dc:creator>Dirk Dittmar</dc:creator>
		<pubDate>Wed, 16 Mar 2011 14:04:02 +0000</pubDate>
		<guid isPermaLink="false">http://cdonner.com/?p=173#comment-6107</guid>
		<description>thanks for the effort... the hint with the animated gif was very helpful...</description>
		<content:encoded><![CDATA[<p>thanks for the effort&#8230; the hint with the animated gif was very helpful&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gauri</title>
		<link>http://cdonner.com/the-html-img-tag-and-onload-event-bugs-in-ie.htm/comment-page-1#comment-5904</link>
		<dc:creator>Gauri</dc:creator>
		<pubDate>Thu, 16 Sep 2010 07:16:15 +0000</pubDate>
		<guid isPermaLink="false">http://cdonner.com/?p=173#comment-5904</guid>
		<description>hi 
below is my code... it works fine in IE for some images and in firefox(Mozilla/5.0) it gives height and width both as zero.




function getImgSize(imgsrc)
{
var newImg = new Image();
newImg.onLoad = function() {
    // always called
    alert(&#039;image loaded&#039;);
};
newImg.src = imgsrc;
var height = newImg.height;
var width = newImg.width;
var filename = imgsrc.replace(/^.*\\/, &#039;&#039;)
 alert(&quot;&#039;&quot; + filename + &quot;&#039; is &quot; + width + &quot; by &quot; + height + &quot; pixels in size.&quot;);
alert (&#039;The image size is &#039;+width+&#039;*&#039;+height);
}











</description>
		<content:encoded><![CDATA[<p>hi<br />
below is my code&#8230; it works fine in IE for some images and in firefox(Mozilla/5.0) it gives height and width both as zero.</p>
<p>function getImgSize(imgsrc)<br />
{<br />
var newImg = new Image();<br />
newImg.onLoad = function() {<br />
    // always called<br />
    alert(&#8216;image loaded&#8217;);<br />
};<br />
newImg.src = imgsrc;<br />
var height = newImg.height;<br />
var width = newImg.width;<br />
var filename = imgsrc.replace(/^.*\\/, &#8221;)<br />
 alert(&#8220;&#8216;&#8221; + filename + &#8220;&#8216; is &#8221; + width + &#8221; by &#8221; + height + &#8221; pixels in size.&#8221;);<br />
alert (&#8216;The image size is &#8216;+width+&#8217;*'+height);<br />
}</p>
]]></content:encoded>
	</item>
</channel>
</rss>

