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

Your preferred username that is used when logging in.

Reposition a tooltip after display Created Nov 2, 2009

This thread is solved

Views: 1137     Replies: 4     Last reply Mar 30, 2010  
You must login first before you can use this feature

remcopoelstra

Posts: 3

Registered:
Nov 2, 2009

Reposition a tooltip after display

Posted: Nov 2, 2009

Hi,

I'm currently using tooltips to display extra information from an inventory. It takes a while before the data is loaded, so in the mean time the tooltip display a "loading data..." text. After the data is loaded, the tooltip expands to show the new content. The problem is that the tooltip overlays the trigger element after expanding. Is there some way to reposition the tooltip after it has expanded?
Thanks in advance.

Kind regards,

Remco Poelstra

wizzle

Posts: 4

Registered:
Mar 17, 2010

» Reposition a tooltip after display

Posted: Mar 17, 2010

Reply to: Reposition a tooltip after display, from remcopoelstra
Remco,

I have the exact same problem. I display a loading div while the AJAX call is made - then the div is updated with new HTML. However, the tooltips are quite long after being populated and need repositioning more often than not.

Have you found a solution? Anyone else?

Thanks,

Will

remcopoelstra

Posts: 3

Registered:
Nov 2, 2009

» » Reposition a tooltip after display

Posted: Mar 17, 2010

Reply to: » Reposition a tooltip after display, from wizzle
Hi,

I don't know whether it came with an update or something like that, but currently the tooltip repositions itself after loading the new data in the div. So the problem is solved for me. Sorry I can't be of any help.

wizzle

Posts: 4

Registered:
Mar 17, 2010

» » » Reposition a tooltip after display

Posted: Mar 18, 2010

Reply to: » » Reposition a tooltip after display, from remcopoelstra
We may be implementing the AJAX call differently. Would you mind posting your code?

Thanks again,

Will

remcopoelstra

Posts: 3

Registered:
Nov 2, 2009

» » » » Reposition a tooltip after display

Posted: Mar 30, 2010

Reply to: » » » Reposition a tooltip after display, from wizzle
Hi,

Sorry for the long delay. I totally forgot on this one. I hope it's of any use:
In the table view:
 $article_number->setAttribute("onmouseover","jQuery.get('main_information.php',{main_number: $row[$column_name], INDEX: {$row['INDEX']}},Main_Article_Information_Callback);"); 

In the javascript section of the body:
 function Main_Article_Information_Callback(data) {
    var strings=eval(data);

    $("#article_"+strings[0]).html(strings[1]);
}

It's not the most beautiful code, but then I'm not a real web developer.

Kind regards,

Remco Poelstra