Board Logo

can't update tt
dbieber - 7/29/2004 at 10:29 PM

Hi,

I am loading a tooltip setting for all nodes and leafs. When a user clicks on a leaf, I have an event capture and store the event item object (o_item).

I then attempt to change the tool tip using the following code:

o_item.a_config[2]['tt']="New Comment";
o_item.state_lookup();

The tooltip doesn't change, however. What am I doing wrong? Thx. -Doug


tigra - 7/30/2004 at 04:17 AM

Tooltips are printed in the HTML code when tree menu is being loaded. This property can't be dynamically redefined.

Although this property of the <a..> tag can be reassigned in modern browsers current version of the script doesn't use this feature. You can contact us with customization request if you want it added.


dbieber - 8/3/2004 at 03:25 PM

Thanks for the response. Here's the solution:

document.all.item("i0_"+o_item.n_id).parentElement.title="tooltip";
document.all.item("t0_"+o_item.n_id).firstChild.title="tooltip";

This is what you wanted to customize!?!


tigra - 8/4/2004 at 04:43 AM

Note that 'all' collection is not supported by all browsers. You should also check for possible compatibility issues with other properties you use in the code fragment given.


bdo - 9/15/2004 at 06:22 AM

Can the suggested solution also be used to amend a selected item's caption dynamically? What about link?


Softcomplex: http://www.softcomplex.com/
Back to forum: http://www.softcomplex.com/forum/