<?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: Table rows as clickable anchors</title>
	<atom:link href="http://james.padolsey.com/javascript/table-rows-as-clickable-anchors/feed/" rel="self" type="application/rss+xml" />
	<link>http://james.padolsey.com/javascript/table-rows-as-clickable-anchors/</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: Tommie Hansen</title>
		<link>http://james.padolsey.com/javascript/table-rows-as-clickable-anchors/comment-page-1/#comment-17099</link>
		<dc:creator>Tommie Hansen</dc:creator>
		<pubDate>Sat, 25 Jul 2009 08:25:56 +0000</pubDate>
		<guid isPermaLink="false">http://james.padolsey.com/?p=853#comment-17099</guid>
		<description>This effeciently kills any CSS-formatting for tr:hover as the previous user says. It also kills formatting for a:hover within the TR&#039;s which is quite a bad thing.

REDO! :)</description>
		<content:encoded><![CDATA[<p>This effeciently kills any CSS-formatting for tr:hover as the previous user says. It also kills formatting for a:hover within the TR&#8217;s which is quite a bad thing.</p>
<p>REDO! <img src='http://james.padolsey.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: james1</title>
		<link>http://james.padolsey.com/javascript/table-rows-as-clickable-anchors/comment-page-1/#comment-12998</link>
		<dc:creator>james1</dc:creator>
		<pubDate>Wed, 27 May 2009 21:09:24 +0000</pubDate>
		<guid isPermaLink="false">http://james.padolsey.com/?p=853#comment-12998</guid>
		<description>Nice plugin</description>
		<content:encoded><![CDATA[<p>Nice plugin</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marek Stasikowski</title>
		<link>http://james.padolsey.com/javascript/table-rows-as-clickable-anchors/comment-page-1/#comment-12967</link>
		<dc:creator>Marek Stasikowski</dc:creator>
		<pubDate>Wed, 27 May 2009 15:31:28 +0000</pubDate>
		<guid isPermaLink="false">http://james.padolsey.com/?p=853#comment-12967</guid>
		<description>I&#039;ve come across something developing a project, which will be out surely after IE6 dies.
I use lot&#039;s of stuff like:
&lt;pre lang=&quot;css&quot;&gt;
tr:hover td {
   background-color: #abc;
}
&lt;/pre&gt;
Unfortunately, this plugin kills the browsers behaviour handled by css :(
Any ideas?</description>
		<content:encoded><![CDATA[<p>I&#8217;ve come across something developing a project, which will be out surely after IE6 dies.<br />
I use lot&#8217;s of stuff like:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">tr<span class="re2">:hover </span>td <span class="br0">&#123;</span>
   <span class="kw1">background-color</span><span class="sy0">:</span> <span class="re0">#abc</span><span class="sy0">;</span>
<span class="br0">&#125;</span></pre></div></div>

<p>Unfortunately, this plugin kills the browsers behaviour handled by css <img src='http://james.padolsey.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /><br />
Any ideas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James</title>
		<link>http://james.padolsey.com/javascript/table-rows-as-clickable-anchors/comment-page-1/#comment-12769</link>
		<dc:creator>James</dc:creator>
		<pubDate>Mon, 25 May 2009 21:36:28 +0000</pubDate>
		<guid isPermaLink="false">http://james.padolsey.com/?p=853#comment-12769</guid>
		<description>@&lt;a href=&quot;#comment-12754&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;Georg&lt;/strong&gt;&lt;/a&gt;, You&#039;re quite right; this definitely is not suitable for all tables, especially those that contain quite a lot of data. For smaller tables with not-so-interesting data this might be useful though. I guess one of the disadvantages in having a &lt;code&gt;&lt;tr&gt;&lt;/code&gt; behave like an anchor is that it becomes non-selectable (just like anchors)...

@&lt;a href=&quot;#comment-12759&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;Mathias Bynens&lt;/strong&gt;&lt;/a&gt;, great idea; just implemented! :)


@&lt;a href=&quot;#comment-12764&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;Brian&lt;/strong&gt;&lt;/a&gt;, Thank you for the fix Brian; I&#039;ve just added it to the plugin source!

@&lt;a href=&quot;#comment-12766&quot; rel=&quot;nofollow&quot;&gt;&lt;strong&gt;Jeferson&lt;/strong&gt;&lt;/a&gt;, Unfortunately, like you said, the issues I pointed out are not considered. The plugin you linked to is effectively the same as doing this:

&lt;pre lang=&quot;javascript&quot;&gt;
$(elem).click(function(){
    window.location = $(&#039;a:first&#039;, this).attr(&#039;href&#039;);
});
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>@<a href="#comment-12754"><strong>Georg</strong></a>, You&#8217;re quite right; this definitely is not suitable for all tables, especially those that contain quite a lot of data. For smaller tables with not-so-interesting data this might be useful though. I guess one of the disadvantages in having a <code>&lt;tr&gt;</code> behave like an anchor is that it becomes non-selectable (just like anchors)&#8230;</p>
<p>@<a href="#comment-12759"><strong>Mathias Bynens</strong></a>, great idea; just implemented! <img src='http://james.padolsey.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>@<a href="#comment-12764"><strong>Brian</strong></a>, Thank you for the fix Brian; I&#8217;ve just added it to the plugin source!</p>
<p>@<a href="#comment-12766"><strong>Jeferson</strong></a>, Unfortunately, like you said, the issues I pointed out are not considered. The plugin you linked to is effectively the same as doing this:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">$<span class="br0">&#40;</span>elem<span class="br0">&#41;</span>.<span class="me1">click</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>
    window.<span class="me1">location</span> <span class="sy0">=</span> $<span class="br0">&#40;</span><span class="st0">'a:first'</span><span class="sy0">,</span> <span class="kw1">this</span><span class="br0">&#41;</span>.<span class="me1">attr</span><span class="br0">&#40;</span><span class="st0">'href'</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>

]]></content:encoded>
	</item>
	<item>
		<title>By: Jeferson Koslowski</title>
		<link>http://james.padolsey.com/javascript/table-rows-as-clickable-anchors/comment-page-1/#comment-12766</link>
		<dc:creator>Jeferson Koslowski</dc:creator>
		<pubDate>Mon, 25 May 2009 20:59:12 +0000</pubDate>
		<guid isPermaLink="false">http://james.padolsey.com/?p=853#comment-12766</guid>
		<description>Very nice and clever solution.

There is already a jQuery plugin that does that, but it doesn&#039;t solve the issues with anchors that u pointed out. Here it is: http://newism.com.au/blog/post/58/bigtarget-js-increasing-the-size-of-clickable-targets/

Cheers.</description>
		<content:encoded><![CDATA[<p>Very nice and clever solution.</p>
<p>There is already a jQuery plugin that does that, but it doesn&#8217;t solve the issues with anchors that u pointed out. Here it is: <a href="http://newism.com.au/blog/post/58/bigtarget-js-increasing-the-size-of-clickable-targets/">http://newism.com.au/blog/post/58/bigtarget-js-increasing-the-size-of-clickable-targets/</a></p>
<p>Cheers.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian Fisher</title>
		<link>http://james.padolsey.com/javascript/table-rows-as-clickable-anchors/comment-page-1/#comment-12764</link>
		<dc:creator>Brian Fisher</dc:creator>
		<pubDate>Mon, 25 May 2009 20:23:42 +0000</pubDate>
		<guid isPermaLink="false">http://james.padolsey.com/?p=853#comment-12764</guid>
		<description>I was able to fix my issue by transferring the tr mouseover events to the $targetLink, similar to what you did for the mouseout events. This only shows the active highlight if the computer has time to show the $targetLink, but I think it works better than leaving the lingering highlighted rows.  I added the following code:

&lt;pre lang=&quot;javascript&quot;&gt;
var mouseovers = $(this).data(&#039;events&#039;) &amp;&amp; $(this).data(&#039;events&#039;).mouseover;

if (mouseovers) {
	$.each(mouseovers, function(i, fn){
		$targetLink.mouseover(function(e){
			fn.call($container, e);
		});
	});
	delete $(this).data(&#039;events&#039;).mouseover;
}

$container.mouseover(function(){
	$targetLink.show();
}) 
            
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>I was able to fix my issue by transferring the tr mouseover events to the $targetLink, similar to what you did for the mouseout events. This only shows the active highlight if the computer has time to show the $targetLink, but I think it works better than leaving the lingering highlighted rows.  I added the following code:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span class="kw2">var</span> mouseovers <span class="sy0">=</span> $<span class="br0">&#40;</span><span class="kw1">this</span><span class="br0">&#41;</span>.<span class="me1">data</span><span class="br0">&#40;</span><span class="st0">'events'</span><span class="br0">&#41;</span> <span class="sy0">&amp;&amp;</span> $<span class="br0">&#40;</span><span class="kw1">this</span><span class="br0">&#41;</span>.<span class="me1">data</span><span class="br0">&#40;</span><span class="st0">'events'</span><span class="br0">&#41;</span>.<span class="me1">mouseover</span><span class="sy0">;</span>
&nbsp;
<span class="kw1">if</span> <span class="br0">&#40;</span>mouseovers<span class="br0">&#41;</span> <span class="br0">&#123;</span>
	$.<span class="me1">each</span><span class="br0">&#40;</span>mouseovers<span class="sy0">,</span> <span class="kw2">function</span><span class="br0">&#40;</span>i<span class="sy0">,</span> fn<span class="br0">&#41;</span><span class="br0">&#123;</span>
		$targetLink.<span class="me1">mouseover</span><span class="br0">&#40;</span><span class="kw2">function</span><span class="br0">&#40;</span>e<span class="br0">&#41;</span><span class="br0">&#123;</span>
			fn.<span class="me1">call</span><span class="br0">&#40;</span>$container<span class="sy0">,</span> e<span class="br0">&#41;</span><span class="sy0">;</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>
	<span class="kw1">delete</span> $<span class="br0">&#40;</span><span class="kw1">this</span><span class="br0">&#41;</span>.<span class="me1">data</span><span class="br0">&#40;</span><span class="st0">'events'</span><span class="br0">&#41;</span>.<span class="me1">mouseover</span><span class="sy0">;</span>
<span class="br0">&#125;</span>
&nbsp;
$container.<span class="me1">mouseover</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>
	$targetLink.<span class="me1">show</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span>
<span class="br0">&#125;</span><span class="br0">&#41;</span></pre></div></div>

]]></content:encoded>
	</item>
	<item>
		<title>By: Mathias Bynens</title>
		<link>http://james.padolsey.com/javascript/table-rows-as-clickable-anchors/comment-page-1/#comment-12759</link>
		<dc:creator>Mathias Bynens</dc:creator>
		<pubDate>Mon, 25 May 2009 19:08:45 +0000</pubDate>
		<guid isPermaLink="false">http://james.padolsey.com/?p=853#comment-12759</guid>
		<description>Awesome plugin, James. I will definitely be using this in future projects.

You might want to use it on this site as well, for example in p.video, as seen on &lt;a href=&quot;http://james.padolsey.com/javascript/jquery-plugin-detector/&quot; rel=&quot;nofollow&quot;&gt;your jQuery plugin detector post&lt;/a&gt;.</description>
		<content:encoded><![CDATA[<p>Awesome plugin, James. I will definitely be using this in future projects.</p>
<p>You might want to use it on this site as well, for example in p.video, as seen on <a href="http://james.padolsey.com/javascript/jquery-plugin-detector/">your jQuery plugin detector post</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian Fisher</title>
		<link>http://james.padolsey.com/javascript/table-rows-as-clickable-anchors/comment-page-1/#comment-12757</link>
		<dc:creator>Brian Fisher</dc:creator>
		<pubDate>Mon, 25 May 2009 19:07:07 +0000</pubDate>
		<guid isPermaLink="false">http://james.padolsey.com/?p=853#comment-12757</guid>
		<description>Great plug-in!  I&#039;m having a small problem, on slower computers when I move the mouse rapidly across the table, rows remain highlighted even after the mouse is no longer hovering over the row.</description>
		<content:encoded><![CDATA[<p>Great plug-in!  I&#8217;m having a small problem, on slower computers when I move the mouse rapidly across the table, rows remain highlighted even after the mouse is no longer hovering over the row.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Georg Tavonius</title>
		<link>http://james.padolsey.com/javascript/table-rows-as-clickable-anchors/comment-page-1/#comment-12754</link>
		<dc:creator>Georg Tavonius</dc:creator>
		<pubDate>Mon, 25 May 2009 18:41:17 +0000</pubDate>
		<guid isPermaLink="false">http://james.padolsey.com/?p=853#comment-12754</guid>
		<description>That is in deed a really nice idea. But there is one issue that really would bother me if would encounter such an enhanced table. (More then right or shift click capabilities.)

Table data is in most cases data, that shows some interesting numbers, or other data you probably would like to use in other documents. So while hovering an empty a link beneath the mouse cursor, you are not able to select the text to copy it. Maybe you will find a solution for this too.

Cheers,
me</description>
		<content:encoded><![CDATA[<p>That is in deed a really nice idea. But there is one issue that really would bother me if would encounter such an enhanced table. (More then right or shift click capabilities.)</p>
<p>Table data is in most cases data, that shows some interesting numbers, or other data you probably would like to use in other documents. So while hovering an empty a link beneath the mouse cursor, you are not able to select the text to copy it. Maybe you will find a solution for this too.</p>
<p>Cheers,<br />
me</p>
]]></content:encoded>
	</item>
</channel>
</rss>
