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
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
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
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
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
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
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.
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
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
9 matches
Mail list logo