hh
Newbie
Posts: 1
Registered: 5/11/2007
Member Is Offline
|
| posted on 5/11/2007 at 07:52 AM |
|
|
Change captions at runtime
Is there a way to change the item captions in the menu on e.g. the onItemSelect event.?
Using o_item.a_config[0] seem to change the caption, but this is not shown on the menu... I'm running the Pro version.
Regards,
H
|
|
|
tigra
Administrator
Posts: 1990
Registered: 6/17/2002
Location: US, CO
Member Is Offline
|
| posted on 5/11/2007 at 01:50 PM |
|
|
Once HTML is generated a_config[0] will be ignored. The only way left is getting to the HTML element and changing it via the innerHTML property. The
simplified html of the item look like this:
<td id="t%menu_id%_%item_id%"><a href="%a_config[1]%">%a_config[0]%</a>
|
|
|