Saving the elements beforehand (if they're not gonna change), rolling
your own loop and doing only what is necessary inside it should
increase performance already. I'm sure there are faster ways, knowing
how the HTML is structured you could speed up the element look-ups
too.
$(document).ready(fun
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
What version of jQuery are you using? I just tested the animate
function in 1.2.6 and it only installs 1 timer.
In the 1.2.6 uncompressed source the interval timer creation is on
line 3231. You can put a console.log message, break point or alert on
that line and see for yourself.
You do see a dif
Yes, that's the correct location.
--Klaus
On 17 Jun., 01:49, Illah <[EMAIL PROTECTED]> wrote:
> Hey Klaus,
>
> Thanks for the input - adding the ui-tabs-nav class prevents the flash
> of unstyled nav buttons, but the ui-tabs-panel class doesn't seem to
> be helping with the content within the t
Hey Klaus,
Thanks for the input - adding the ui-tabs-nav class prevents the flash
of unstyled nav buttons, but the ui-tabs-panel class doesn't seem to
be helping with the content within the tabs...it still seems to be
waiting for the page to load before snapping the content into the
tabs. I'm ad
If you want to prevent a flash of unstyled content, you can add the
classes that are added by the plugin right away to your HTML:
...
...
And in case you want to keep your panels hidden:
...
--Klaus
On 14 Jun., 06:12, Illah <[EMAIL PROTECTED]> wrote:
> Thanks for the feedback...so I guess I
Thanks for the feedback...so I guess I was correct in my assumption
that the general page load was affecting the script? The majority of
that ~1MB page load is the images, and I can't really get rid of those
(all the flash will be gone soon, it's part of an ad campaign ending
this weekend).
I ch
Thanks for the feedback...so I guess I was correct in my assumption
that the general page load was affecting the script? The majority of
that ~1MB page load is the images, and I can't really get rid of those
(all the flash will be gone soon, it's part of an ad campaign ending
this weekend).
I ch
Hmm, I think it has to do with the enormous page weight (Firebug
calculates it at 1.05 MB). I would look for an overall optimization
first to the site's weight (optimize images, clean up markup, pack/
minify javascript and/or CSS files at a minimum).
I ran into an issue with having to maintain a
17 matches
Mail list logo