<?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"
	>
<channel>
	<title>Comments on: Creating Image Preview Tooltips with the YUI Overlay Widget</title>
	<atom:link href="http://allmybrain.com/2007/12/05/creating-image-preview-tooltips-with-the-yui-overlay-widget/feed/" rel="self" type="application/rss+xml" />
	<link>http://allmybrain.com/2007/12/05/creating-image-preview-tooltips-with-the-yui-overlay-widget/</link>
	<description>Where stuff from my brain lands</description>
	<pubDate>Fri, 04 Jul 2008 13:27:31 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: dylan</title>
		<link>http://allmybrain.com/2007/12/05/creating-image-preview-tooltips-with-the-yui-overlay-widget/#comment-289</link>
		<dc:creator>dylan</dc:creator>
		<pubDate>Sun, 03 Feb 2008 06:03:28 +0000</pubDate>
		<guid isPermaLink="false">http://allmybrain.com/2007/12/05/creating-image-preview-tooltips-with-the-yui-overlay-widget/#comment-289</guid>
		<description>Funny I did the same thing pretty much line for line on mine before reading your comment:

if (!i.complete) {
   YUE.on ( i, 'load', function(e) {
    var img = YUD.get('photo_for_'+photo_id);
	img.src = i.src;
	img.width = i.width;
 	img.height = i.height;
   } );
  } else {
	img.src = i.src;
	img.width = i.width;
 	img.height = i.height;
  }</description>
		<content:encoded><![CDATA[<p>Funny I did the same thing pretty much line for line on mine before reading your comment:</p>
<p>if (!i.complete) {<br />
   YUE.on ( i, &#8216;load&#8217;, function(e) {<br />
    var img = YUD.get(&#8217;photo_for_&#8217;+photo_id);<br />
	img.src = i.src;<br />
	img.width = i.width;<br />
 	img.height = i.height;<br />
   } );<br />
  } else {<br />
	img.src = i.src;<br />
	img.width = i.width;<br />
 	img.height = i.height;<br />
  }</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dennis</title>
		<link>http://allmybrain.com/2007/12/05/creating-image-preview-tooltips-with-the-yui-overlay-widget/#comment-288</link>
		<dc:creator>Dennis</dc:creator>
		<pubDate>Tue, 29 Jan 2008 18:29:14 +0000</pubDate>
		<guid isPermaLink="false">http://allmybrain.com/2007/12/05/creating-image-preview-tooltips-with-the-yui-overlay-widget/#comment-288</guid>
		<description>Looks like I have a slightly updated version I was using in production..  I think I ran across the same error.  Here is what I did to fix it:

replace the whole if (!i.complete) block with the following and see if that also solves your problem:

var i=new Image();
Event.on ( i, 'load',  function(e) {
&#160;img.src=i.src;
&#160;img.width=i.width;
&#160;img.height=i.height;
} );
i.src='&#60;the path to your photo&gt;';</description>
		<content:encoded><![CDATA[<p>Looks like I have a slightly updated version I was using in production..  I think I ran across the same error.  Here is what I did to fix it:</p>
<p>replace the whole if (!i.complete) block with the following and see if that also solves your problem:</p>
<p>var i=new Image();<br />
Event.on ( i, &#8216;load&#8217;,  function(e) {<br />
&nbsp;img.src=i.src;<br />
&nbsp;img.width=i.width;<br />
&nbsp;img.height=i.height;<br />
} );<br />
i.src=&#8217;&lt;the path to your photo>&#8217;;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dylan</title>
		<link>http://allmybrain.com/2007/12/05/creating-image-preview-tooltips-with-the-yui-overlay-widget/#comment-287</link>
		<dc:creator>dylan</dc:creator>
		<pubDate>Mon, 28 Jan 2008 01:05:16 +0000</pubDate>
		<guid isPermaLink="false">http://allmybrain.com/2007/12/05/creating-image-preview-tooltips-with-the-yui-overlay-widget/#comment-287</guid>
		<description>I'm trying to use this on a site that I'm buidling. It's really nice - I appreciate your creating it. One thing though - in IE6, my installation is not resizing the image correctly after the SRC value is changed (after the image has finished downloading). For instance, if my loader.gif is 32x32, the large size image remains that way. I have seen a bug like this before where IE has trouble resizing images if you leave out a width or height, but I believe it should redraw the image completely if both are left out.

Let me know what you think - Ive set the loading image URL to your loading image just to be sure it wasnt a JPEG/GIF redrawing type thing.

http://www.dylanbutler.com/client/mapmashup/

(Find a listing with photos and mouse over one)

Thanks in advance</description>
		<content:encoded><![CDATA[<p>I&#8217;m trying to use this on a site that I&#8217;m buidling. It&#8217;s really nice - I appreciate your creating it. One thing though - in IE6, my installation is not resizing the image correctly after the SRC value is changed (after the image has finished downloading). For instance, if my loader.gif is 32&#215;32, the large size image remains that way. I have seen a bug like this before where IE has trouble resizing images if you leave out a width or height, but I believe it should redraw the image completely if both are left out.</p>
<p>Let me know what you think - Ive set the loading image URL to your loading image just to be sure it wasnt a JPEG/GIF redrawing type thing.</p>
<p><a href="http://www.dylanbutler.com/client/mapmashup/" rel="nofollow">http://www.dylanbutler.com/client/mapmashup/</a></p>
<p>(Find a listing with photos and mouse over one)</p>
<p>Thanks in advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric Miraglia</title>
		<link>http://allmybrain.com/2007/12/05/creating-image-preview-tooltips-with-the-yui-overlay-widget/#comment-145</link>
		<dc:creator>Eric Miraglia</dc:creator>
		<pubDate>Wed, 05 Dec 2007 20:26:23 +0000</pubDate>
		<guid isPermaLink="false">http://allmybrain.com/2007/12/05/creating-image-preview-tooltips-with-the-yui-overlay-widget/#comment-145</guid>
		<description>More great stuff -- thanks, Dennis!</description>
		<content:encoded><![CDATA[<p>More great stuff &#8212; thanks, Dennis!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
