johnfraser
Programmer
I have a menu system that populates it's items by data binding. The menu itself we have a java script function attached as an attribute that checks to see if the menu item clicked is of special type.
Unfortunately the defect is when the menu items have children. When I click on the children my javascript function doesn't fire... easy enough, I thought, I'll simply cycle through the items and add the function to their onselect as an attribute..... not the case... apparently menu items do not have attributes so my idea was sunk.
So here is the problem. I have a javascript function that needs to be called when I click on a Menu.Items.ChildItems[j] What is the best way of doing this?
Unfortunately the defect is when the menu items have children. When I click on the children my javascript function doesn't fire... easy enough, I thought, I'll simply cycle through the items and add the function to their onselect as an attribute..... not the case... apparently menu items do not have attributes so my idea was sunk.
So here is the problem. I have a javascript function that needs to be called when I click on a Menu.Items.ChildItems[j] What is the best way of doing this?