<?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: New jQuery plugin: &#8216;imgPreview&#8217;</title>
	<atom:link href="http://james.padolsey.com/javascript/new-jquery-plugin-imgpreview/feed/" rel="self" type="application/rss+xml" />
	<link>http://james.padolsey.com/javascript/new-jquery-plugin-imgpreview/</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Mon, 08 Mar 2010 01:21:27 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Kjartan</title>
		<link>http://james.padolsey.com/javascript/new-jquery-plugin-imgpreview/comment-page-2/#comment-25296</link>
		<dc:creator>Kjartan</dc:creator>
		<pubDate>Tue, 01 Dec 2009 12:40:04 +0000</pubDate>
		<guid isPermaLink="false">http://james.padolsey.com/?p=453#comment-25296</guid>
		<description>Hi James,

I am Icelandic photographer living now in China. I like your great plugin a lot. I am now working on this heavy idea where I use a big clickable map, which is so far working great:

http://www.photo.is/china/index.html

But I have 2 problems:

1) Is it possible to let the picture run around the cursor, like have the picture on the left side when the cursor is on the right side of the screen ...?

2) Is it possible to add different type of icon/logo over the picture by some selection?</description>
		<content:encoded><![CDATA[<p>Hi James,</p>
<p>I am Icelandic photographer living now in China. I like your great plugin a lot. I am now working on this heavy idea where I use a big clickable map, which is so far working great:</p>
<p><a href="http://www.photo.is/china/index.html">http://www.photo.is/china/index.html</a></p>
<p>But I have 2 problems:</p>
<p>1) Is it possible to let the picture run around the cursor, like have the picture on the left side when the cursor is on the right side of the screen &#8230;?</p>
<p>2) Is it possible to add different type of icon/logo over the picture by some selection?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Smedegaard Buus</title>
		<link>http://james.padolsey.com/javascript/new-jquery-plugin-imgpreview/comment-page-2/#comment-23308</link>
		<dc:creator>Daniel Smedegaard Buus</dc:creator>
		<pubDate>Fri, 30 Oct 2009 10:26:48 +0000</pubDate>
		<guid isPermaLink="false">http://james.padolsey.com/?p=453#comment-23308</guid>
		<description>Couple of issues with this plugin. The image dissappering issue in IEs when using animations I don&#039;t have a fix for, but with regards to the plugin failing and killing javascript in general when selectors return an empty result set, you just need to add
&lt;pre lang=&quot;javascript&quot;&gt;
if (!h.length) return this;
&lt;/pre&gt;
After this bit of code in the original file:
&lt;pre lang=&quot;javascript&quot;&gt;
h = this.filter(&#039;:linkingToImage(&#039; + b.srcAttr + &#039;)&#039;);
&lt;/pre&gt;
so that it&#039;ll look like this:
&lt;pre lang=&quot;javascript&quot;&gt;
h = this.filter(&#039;:linkingToImage(&#039; + b.srcAttr + &#039;)&#039;);if (!h.length) return this;
&lt;/pre&gt;
Now you can do
&lt;pre lang=&quot;javascript&quot;&gt;
$(’.some-not-existing-class a’).imgPreview();
&lt;/pre&gt;
and not kill your js chain if the class doesn&#039;t exist or no srcAttr hits are found inside.</description>
		<content:encoded><![CDATA[<p>Couple of issues with this plugin. The image dissappering issue in IEs when using animations I don&#8217;t have a fix for, but with regards to the plugin failing and killing javascript in general when selectors return an empty result set, you just need to add</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span class="kw1">if</span> <span class="br0">&#40;</span><span class="sy0">!</span>h.<span class="me1">length</span><span class="br0">&#41;</span> <span class="kw1">return</span> <span class="kw1">this</span><span class="sy0">;</span></pre></div></div>

<p>After this bit of code in the original file:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">h <span class="sy0">=</span> <span class="kw1">this</span>.<span class="me1">filter</span><span class="br0">&#40;</span><span class="st0">':linkingToImage('</span> <span class="sy0">+</span> b.<span class="me1">srcAttr</span> <span class="sy0">+</span> <span class="st0">')'</span><span class="br0">&#41;</span><span class="sy0">;</span></pre></div></div>

<p>so that it&#8217;ll look like this:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">h <span class="sy0">=</span> <span class="kw1">this</span>.<span class="me1">filter</span><span class="br0">&#40;</span><span class="st0">':linkingToImage('</span> <span class="sy0">+</span> b.<span class="me1">srcAttr</span> <span class="sy0">+</span> <span class="st0">')'</span><span class="br0">&#41;</span><span class="sy0">;</span>if <span class="br0">&#40;</span><span class="sy0">!</span>h.<span class="me1">length</span><span class="br0">&#41;</span> <span class="kw1">return</span> <span class="kw1">this</span><span class="sy0">;</span></pre></div></div>

<p>Now you can do</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">$<span class="br0">&#40;</span>’.<span class="me1">some</span><span class="sy0">-</span>not<span class="sy0">-</span>existing<span class="sy0">-</span><span class="kw2">class</span> a’<span class="br0">&#41;</span>.<span class="me1">imgPreview</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span></pre></div></div>

<p>and not kill your js chain if the class doesn&#8217;t exist or no srcAttr hits are found inside.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: BandonRandon</title>
		<link>http://james.padolsey.com/javascript/new-jquery-plugin-imgpreview/comment-page-2/#comment-22568</link>
		<dc:creator>BandonRandon</dc:creator>
		<pubDate>Tue, 20 Oct 2009 00:51:41 +0000</pubDate>
		<guid isPermaLink="false">http://james.padolsey.com/?p=453#comment-22568</guid>
		<description>I also have the issue that if an element doesn&#039;t exist it throws an error. I think the plugin should do a search and only initiate if the element is present. 

Hopefully this will be fixed in the next version.</description>
		<content:encoded><![CDATA[<p>I also have the issue that if an element doesn&#8217;t exist it throws an error. I think the plugin should do a search and only initiate if the element is present. </p>
<p>Hopefully this will be fixed in the next version.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 77street</title>
		<link>http://james.padolsey.com/javascript/new-jquery-plugin-imgpreview/comment-page-2/#comment-21604</link>
		<dc:creator>77street</dc:creator>
		<pubDate>Mon, 05 Oct 2009 02:12:56 +0000</pubDate>
		<guid isPermaLink="false">http://james.padolsey.com/?p=453#comment-21604</guid>
		<description>it very nice! I&#039;ll use it in my website: http://www.77street.net.
thinks.</description>
		<content:encoded><![CDATA[<p>it very nice! I&#8217;ll use it in my website: <a href="http://www.77street.net">http://www.77street.net</a>.<br />
thinks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: François</title>
		<link>http://james.padolsey.com/javascript/new-jquery-plugin-imgpreview/comment-page-2/#comment-20547</link>
		<dc:creator>François</dc:creator>
		<pubDate>Wed, 16 Sep 2009 23:06:12 +0000</pubDate>
		<guid isPermaLink="false">http://james.padolsey.com/?p=453#comment-20547</guid>
		<description>I have 2 solutions for the &quot;a is undefined&quot; error. The first one was explained earlier, you must put your &lt;code&gt;$(&#039;.pic a&#039;).imgPreview()&lt;/code&gt; after the image, but a better way is to put it in the &lt;code&gt;$(document).ready()&lt;/code&gt; like 
&lt;pre lang=&quot;javascript&quot;&gt;
$(document).ready(function() {
	$(&#039;.pic a&#039;).imgPreview({
    containerID: &#039;imgPreviewWithStyles&#039;,
    srcAttr: &#039;rel&#039;,
    imgCSS: {
    }, 
    onHide: function(link){
        $(&#039;span&#039;, this).remove();
    }
	});
	$(&#039;ul#photos&#039;).innerfade({
		speed: 2000,
		timeout: 7000,
		type: &#039;sequence&#039;,
		containerheight: &#039;285px&#039;
	});
});
&lt;/pre&gt;

&lt;em&gt;Another possibility&lt;/em&gt; is that if there is no images (&lt;code&gt;li&lt;/code&gt;) in your &lt;code&gt;ul&lt;/code&gt;, there will also be an error. Maybe this should be considered a bug?</description>
		<content:encoded><![CDATA[<p>I have 2 solutions for the &#8220;a is undefined&#8221; error. The first one was explained earlier, you must put your <code>$('.pic a').imgPreview()</code> after the image, but a better way is to put it in the <code>$(document).ready()</code> like</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">$<span class="br0">&#40;</span>document<span class="br0">&#41;</span>.<span class="me1">ready</span><span class="br0">&#40;</span><span class="kw2">function</span><span class="br0">&#40;</span><span class="br0">&#41;</span> <span class="br0">&#123;</span>
	$<span class="br0">&#40;</span><span class="st0">'.pic a'</span><span class="br0">&#41;</span>.<span class="me1">imgPreview</span><span class="br0">&#40;</span><span class="br0">&#123;</span>
    containerID<span class="sy0">:</span> <span class="st0">'imgPreviewWithStyles'</span><span class="sy0">,</span>
    srcAttr<span class="sy0">:</span> <span class="st0">'rel'</span><span class="sy0">,</span>
    imgCSS<span class="sy0">:</span> <span class="br0">&#123;</span>
    <span class="br0">&#125;</span><span class="sy0">,</span> 
    onHide<span class="sy0">:</span> <span class="kw2">function</span><span class="br0">&#40;</span>link<span class="br0">&#41;</span><span class="br0">&#123;</span>
        $<span class="br0">&#40;</span><span class="st0">'span'</span><span class="sy0">,</span> <span class="kw1">this</span><span class="br0">&#41;</span>.<span class="me1">remove</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span>
    <span class="br0">&#125;</span>
	<span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span>
	$<span class="br0">&#40;</span><span class="st0">'ul#photos'</span><span class="br0">&#41;</span>.<span class="me1">innerfade</span><span class="br0">&#40;</span><span class="br0">&#123;</span>
		speed<span class="sy0">:</span> <span class="nu0">2000</span><span class="sy0">,</span>
		timeout<span class="sy0">:</span> <span class="nu0">7000</span><span class="sy0">,</span>
		type<span class="sy0">:</span> <span class="st0">'sequence'</span><span class="sy0">,</span>
		containerheight<span class="sy0">:</span> <span class="st0">'285px'</span>
	<span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span>
<span class="br0">&#125;</span><span class="br0">&#41;</span><span class="sy0">;</span></pre></div></div>

<p><em>Another possibility</em> is that if there is no images (<code>li</code>) in your <code>ul</code>, there will also be an error. Maybe this should be considered a bug?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dale</title>
		<link>http://james.padolsey.com/javascript/new-jquery-plugin-imgpreview/comment-page-2/#comment-19999</link>
		<dc:creator>Dale</dc:creator>
		<pubDate>Wed, 09 Sep 2009 14:05:31 +0000</pubDate>
		<guid isPermaLink="false">http://james.padolsey.com/?p=453#comment-19999</guid>
		<description>My website is an intranet site...

Most of my web links are to other intranet URL&#039;s.

In my case, preview images for these intranet URL&#039;s do not already exist.  

I confirmed that the various free preview image services available on the net can&#039;t create a preview image for an intranet site.

I&#039;d like to know if this plugin can be modified to create it&#039;s own URL preview images &quot;on the fly&quot;?

If not, can anyone recommend a different JQuery plugin that can create intranet URL Preview images?   

Thanks!</description>
		<content:encoded><![CDATA[<p>My website is an intranet site&#8230;</p>
<p>Most of my web links are to other intranet URL&#8217;s.</p>
<p>In my case, preview images for these intranet URL&#8217;s do not already exist.  </p>
<p>I confirmed that the various free preview image services available on the net can&#8217;t create a preview image for an intranet site.</p>
<p>I&#8217;d like to know if this plugin can be modified to create it&#8217;s own URL preview images &#8220;on the fly&#8221;?</p>
<p>If not, can anyone recommend a different JQuery plugin that can create intranet URL Preview images?   </p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eddie</title>
		<link>http://james.padolsey.com/javascript/new-jquery-plugin-imgpreview/comment-page-2/#comment-19951</link>
		<dc:creator>Eddie</dc:creator>
		<pubDate>Tue, 08 Sep 2009 18:55:31 +0000</pubDate>
		<guid isPermaLink="false">http://james.padolsey.com/?p=453#comment-19951</guid>
		<description>This is such a great plugin, thanks for creating it.

As others have mentioned, PLEASE implement a fix for when the image previews are close to the bottom or right of the screen. 

Thanks again for making such a killer plugin!</description>
		<content:encoded><![CDATA[<p>This is such a great plugin, thanks for creating it.</p>
<p>As others have mentioned, PLEASE implement a fix for when the image previews are close to the bottom or right of the screen. </p>
<p>Thanks again for making such a killer plugin!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dale</title>
		<link>http://james.padolsey.com/javascript/new-jquery-plugin-imgpreview/comment-page-2/#comment-19713</link>
		<dc:creator>Dale</dc:creator>
		<pubDate>Fri, 04 Sep 2009 16:04:46 +0000</pubDate>
		<guid isPermaLink="false">http://james.padolsey.com/?p=453#comment-19713</guid>
		<description>The first 4 examples in the demo works fine for me.

I&#039;m having problems only when I attempt to preview a link to a website.  When I do this, all I see is a place holder....  i.e. there is no preview, just the animated image loading gif...


    Website links + previews
    
    
        &lt;a href=&quot;http://google.com&quot; rel=&quot;nofollow&quot;&gt;Google&lt;/a&gt;
        &lt;a href=&quot;http://yahoo.com&quot; rel=&quot;nofollow&quot;&gt;Yahoo&lt;/a&gt;
        &lt;a href=&quot;http://amazon.com&quot; rel=&quot;nofollow&quot;&gt;Amazon&lt;/a&gt;
    

Anyone have any recommendations?

Thanks!</description>
		<content:encoded><![CDATA[<p>The first 4 examples in the demo works fine for me.</p>
<p>I&#8217;m having problems only when I attempt to preview a link to a website.  When I do this, all I see is a place holder&#8230;.  i.e. there is no preview, just the animated image loading gif&#8230;</p>
<p>    Website links + previews</p>
<p>        <a href="http://google.com">Google</a><br />
        <a href="http://yahoo.com">Yahoo</a><br />
        <a href="http://amazon.com">Amazon</a></p>
<p>Anyone have any recommendations?</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: naco</title>
		<link>http://james.padolsey.com/javascript/new-jquery-plugin-imgpreview/comment-page-2/#comment-19608</link>
		<dc:creator>naco</dc:creator>
		<pubDate>Wed, 02 Sep 2009 17:23:17 +0000</pubDate>
		<guid isPermaLink="false">http://james.padolsey.com/?p=453#comment-19608</guid>
		<description>Chates,

It doesn&#039;t work unless I write Javascript below than the link a tag of the image.

exp.

&lt;html&gt;
&lt;head&gt;
&lt;meta http-equiv=&quot;content-type&quot; content=&quot;text/html; charset=utf-8&quot;&gt;
&lt;title&gt;TEST img Preview&lt;/title&gt;
&lt;script src=&quot;jquery-1.3.2.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;imgpreview.min.0.22.jquery.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;h1&gt;TEST&lt;/h1&gt;
&lt;h2&gt;jQuery plugin - imgPreview -&lt;/h2&gt;
&lt;div&gt;
&lt;a class=&quot;test&quot; href=&quot;/images/fotos/praha/6-4_big.jpg&quot;&gt;test&lt;/a&gt;
&lt;/div&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
$(&#039;a.test&#039;).imgPreview();
&lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;</description>
		<content:encoded><![CDATA[<p>Chates,</p>
<p>It doesn&#8217;t work unless I write Javascript below than the link a tag of the image.</p>
<p>exp.</p>
<p>&lt;html&gt;<br />
&lt;head&gt;<br />
&lt;meta http-equiv=&#8221;content-type&#8221; content=&#8221;text/html; charset=utf-8&#8243;&gt;<br />
&lt;title&gt;TEST img Preview&lt;/title&gt;<br />
&lt;script src=&#8221;jquery-1.3.2.js&#8221; type=&#8221;text/javascript&#8221;&gt;&lt;/script&gt;<br />
&lt;script src=&#8221;imgpreview.min.0.22.jquery.js&#8221; type=&#8221;text/javascript&#8221;&gt;&lt;/script&gt;<br />
&lt;/head&gt;<br />
&lt;body&gt;<br />
&lt;h1&gt;TEST&lt;/h1&gt;<br />
&lt;h2&gt;jQuery plugin &#8211; imgPreview -&lt;/h2&gt;<br />
&lt;div&gt;<br />
&lt;a class=&#8221;test&#8221; href=&#8221;/images/fotos/praha/6-4_big.jpg&#8221;&gt;test&lt;/a&gt;<br />
&lt;/div&gt;<br />
&lt;script type=&#8221;text/javascript&#8221;&gt;<br />
$(&#8216;a.test&#8217;).imgPreview();<br />
&lt;/script&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Collectonian</title>
		<link>http://james.padolsey.com/javascript/new-jquery-plugin-imgpreview/comment-page-2/#comment-19528</link>
		<dc:creator>Collectonian</dc:creator>
		<pubDate>Tue, 01 Sep 2009 14:21:07 +0000</pubDate>
		<guid isPermaLink="false">http://james.padolsey.com/?p=453#comment-19528</guid>
		<description>Love this plug in! Easy to implement and seems ideal for the project I&#039;m working on. Only question is, is there anyway to make the tool tip trigger when someone mouses over a TD not just the link within the TD? I&#039;m using some other jQuery to make the whole TD a link and would like the preview to show for the whole thing as well. Also, can the preview box be set to be a fixed position instead of relative to the cursor?</description>
		<content:encoded><![CDATA[<p>Love this plug in! Easy to implement and seems ideal for the project I&#8217;m working on. Only question is, is there anyway to make the tool tip trigger when someone mouses over a TD not just the link within the TD? I&#8217;m using some other jQuery to make the whole TD a link and would like the preview to show for the whole thing as well. Also, can the preview box be set to be a fixed position instead of relative to the cursor?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
