Letractively / tooltips

Automatically exported from code.google.com/p/tooltips
0 stars 0 forks source link

Tooltips get lost #6

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. I put cooltips in my ajax page. I copied the example on the samples
2. When the text change event executes the tooltips get lost and the basic 
title shows.

What is the expected output? What do you see instead?
THe expected output is that the cooltip shows.

What version of the product are you using? On what operating system?
Windows xp
IE 7 and Firefox
Cooltips 1.0

Original issue reported on code.google.com by daf...@gmail.com on 13 Sep 2007 at 10:15

GoogleCodeExporter commented 8 years ago
the problem is the same as the one i'm suffering from.

you need to activate the tooltip _after_ you show it in the code.

since your ajax page builds the items afterwards, you need to activate them in 
the
same ajax call.

if your ajax framework supports evaluated expressions, just make some more 
script up
in the ajaxed area.

I used this ugly hack:
<img width="1px" height="1px" src="blank.gif" onload="new Tooltip('myinput',
{mouseFollow: false});">

even in an ajax page, the onload of an image is still triggered and can still 
cause
javascript events.

Original comment by skateasy...@gmail.com on 12 Oct 2007 at 12:30

GoogleCodeExporter commented 8 years ago
Is there any way to automatically do this every time DOM elements are added? 
I'd have
to add a lot of code to do this on every DOM change!

Original comment by ianwl...@gmail.com on 14 Dec 2007 at 9:52