Board Logo

Change captions at runtime
hh - 5/11/2007 at 07:52 AM

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 - 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>


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