You will recieve your password to this address. Address is not made public.

Your preferred username that is used when logging in.

Forum user: chrisva

Basic information

Registered Nov 3, 2009
Last login Nov 4, 2009
Forum posts 3
Direct URL http://www.flowplayer.org/forum/users/18137

Latest forum posts

Posts:

Registered:

» » » Need to reinitialize the tooltip after ajax load complete

Posted: Nov 4, 2009

I'll try that.

Any suggestions why the tooltip using the script is not working in IE8 at all, but is working in all browsers on the first load?

Posts:

Registered:

» Need to reinitialize the tooltip after ajax load complete

Posted: Nov 4, 2009

Hi Jimmyville,

Thanks for the tip. That is actually what I try to do.


function myFunc() {
           $("div.hjelpNavKnapp > a").tooltip({
                    tip: "div.tooltip",
                    position: "bottom right",
                    offset: [-19, 13],
                    relative: true,
                    effect: 'slide'
                }
            );
}

I have wrapped the tooltip code into a function that I call using a different ajax library than jQuery called Gaiaware.

The ajax library calls the javascript using the following code:


document.observe("dom:loaded", myFunc());

This doesn't work though. As it does not add tooltips to the new controller. Could it be my other javascript framework that does things in the wrong order?

Posts:

Registered:

Cannot add new tooltips using different ajax library and reinitiate the tooltips

Posted: Nov 3, 2009

Hi,

I am adding tooltips to my site using the follwing code:


                $("div.hjelpNavKnapp > a").tooltip({
                    tip: "div.tooltip",
                    position: "bottom right",
                    offset: [-19, 13],
                    relative: true,
                    effect: 'slide'
                }
                );

This works great on my first load and all the tooltips that have this class to itself is enabled. However, when I add the new tooltips to the DOM and I call the method again using using Ajax the new DOM elements / tooltips is not working.

Any suggestions to how I can reinitiate all the tooltips again?

NB: It works when i press F5 in the browser as it seems to run the tooltip scripts all over again, but not on ajax calls adding new elements to DOM.