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

Your preferred username that is used when logging in.

Forum user: Jimmyville

Basic information

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

Latest forum posts

Posts:

Registered:

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

Posted: Nov 4, 2009

Not really too sure - i've been using the similar technique in IE8 happily. I'm guessing it has to do with the document.observe method you're using.

Perhaps try including an alert within the function to test if it's firing correctly in each browser.


document.observe("dom:loaded", function(){
  alert('hello?');
  myFunc();
}); 

Sadly without knowing Gaiaware I can't really offer any more advice - perhaps hit up their forums to see if anyone has had a similar issue firing javascript functions after Ajax updates :)

Posts:

Registered:

» » Need to reinitialize the tooltip after ajax load complete

Posted: Nov 4, 2009

Unsure of Gaiaware, but could give this a try:


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

Otherwise, my guess would be this is being triggered on page load but not necessarily when the page is updated.

Try triggering the function after your Ajax call, or perhaps look into Gaiaware to see if there is something along the lines of a "dom:updated" option for document.observe?

Best of luck :)

Posts:

Registered:

Need to reinitialize the tooltip after ajax load complete

Posted: Nov 4, 2009

Hi Chrisva,

I had this same issue today, but managed to get it working correctly by breaking the process into two basic steps. First was to put the Tooltip into it's own function:


function InitializeTooltips() {
   $(".TipTrigger").tooltip({
     tip: "#MyTip"
   });
}

Secondly, I was using jQuery for loading content via Ajax so made sure to call this function again after each oncomplete:


$("#MyDiv").load("ajax-content.html", function(){
  InitializeTooltips()
)};

Hopefully that helps :)