[jQuery] Re: Optimizing Easiest Tooltip

2008-12-08 Thread Frank
Hi Karl, I got it working in the end. I'm not sure why but $('table').simpletip ('a') just wouldn't work, whereas $('.adminTable').simpletip('a') did ("adminTable" being the class applied to my giant table). It's unclear why the latter would work and not the former, but at least it's all fine now

[jQuery] Re: Optimizing Easiest Tooltip

2008-12-06 Thread Karl Swedberg
Hi Frank, Let me know how it goes with your testing. In the meantime, I converted the script to a plugin, so after you include it, you can just do this: $('table').simpletip('a'); This will display a tooltip for every link within the table element, using event delegation. It also has som

[jQuery] Re: Optimizing Easiest Tooltip

2008-12-06 Thread Frank
Hm, how very odd indeed. There must something else on my page conflicting with it then. I'll strip it to the barebones and work my way back up. Thanks for all the help so far! May I also say that your website (learningjquery.com) has been an invaluable font of knowledge for jQuery, as well as bot

[jQuery] Re: Optimizing Easiest Tooltip

2008-12-05 Thread Karl Swedberg
Ok, I dropped your table into my page, and it seems to work fine. http://test.learningjquery.com/very-simple-tooltip.html --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Dec 5, 2008, at 11:45 AM, Frank wrote: Also, I just realised that putting "title"s on

[jQuery] Re: Optimizing Easiest Tooltip

2008-12-05 Thread Frank
Also, I just realised that putting "title"s on TDs is a silly idea, and completely invalid. But I tried it with a direct copy of your script after putting actual links in, but still only get empty tooltips. Here is an example row: Abridged Title - - - - - - - - - - - Y 2 06:01, 05

[jQuery] Re: Optimizing Easiest Tooltip

2008-12-05 Thread Karl Swedberg
On Dec 5, 2008, at 11:17 AM, Frank wrote: Here was my attempt at modifying the original script by the way, which gave very, very strange results. :) $(".adminTable").hover(function(e){ Hi Frank, The first problem in your modification to the script is that you stuck with the .ho

[jQuery] Re: Optimizing Easiest Tooltip

2008-12-05 Thread Frank
Simply exchanging "A" for "TD" in your script didn't work (that would have been too easy :), it only pops up empty tooltips. I'll continue to play with it.

[jQuery] Re: Optimizing Easiest Tooltip

2008-12-05 Thread Frank
Hi Karl, Thanks for your comprehensive reply! I'll give that a go as soon as I can. I need the tooltip for TDs rather than links but that shouldn't be hard to modify I hope. Here was my attempt at modifying the original script by the way, which gave very, very strange results. :) $(document).re

[jQuery] Re: Optimizing Easiest Tooltip

2008-12-05 Thread Karl Swedberg
Hi Frank, Just for kicks, I cranked out my own very simple tooltip script. It isn't a plugin. Yet. But it gets the job done. Basically, it binds the event listeners to a table (since that's what you said you had) and uses event delegation to look for any links within the table. The toolti