dbieber
Junior Member
Posts: 7
Registered: 7/14/2003
Member Is Offline
|
| posted on 7/29/2004 at 10:29 PM |
|
|
can't update tt
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
Administrator
Posts: 1982
Registered: 6/17/2002
Location: US, CO
Member Is Offline
|
| posted on 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
Junior Member
Posts: 7
Registered: 7/14/2003
Member Is Offline
|
| posted on 8/3/2004 at 03:25 PM |
|
|
can update tt
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
Administrator
Posts: 1982
Registered: 6/17/2002
Location: US, CO
Member Is Offline
|
| posted on 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
Newbie
Posts: 1
Registered: 9/15/2004
Location: Melbourne, Australia
Member Is Offline
|
| posted on 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?
|
|
|