PDA

View Full Version : How to detect a object has been decorated with Ext Tool tip?



liuxing_sc
20 Oct 2011, 8:04 AM
I use tooltip according to ext example, but i wanna do it only once, i dun wanna render it again and again as my tooltip is ajax-based. i have written a if clause to prevent that happening, but how to detect if a element has been decorated with ext tooltip???

stevil
24 Oct 2011, 11:56 AM
I use tooltip according to ext example, but i wanna do it only once, i dun wanna render it again and again as my tooltip is ajax-based. i have written a if clause to prevent that happening, but how to detect if a element has been decorated with ext tooltip???

The QuickTip example, if you inspect the page, seems to put a class of "qtip-target" on the element that has a tip. Perhaps you could check the element for the presence of that class?

stevil

liuxing_sc
17 Nov 2011, 11:15 PM
Thank you, but unfortunately, i still cannot find what u've shown for me, can't find the classname on the html node, how do you find it?