- George -
Regarding your first question: The "menu" attribute can only be set
once. You change the menu by swapping out its content as illustrated
in the following example:
Regarding your second question: I suppose you were probably doing
something wrong, as one of the Menu examples illustrates how to add a
click event handler via the object literal format and that example
works in IE:
On Apr 6, 2009, at 9:00 PM, George wrote:
> 1. I have a menu button and at the time of button's instantiation I
> have specified a menu instance. After sometime I would like to
> remove the current menu instance associated with the button and add
> a new menu instance to the button. Is this possible?
> 2. In IE when I tried to create a menu instance through JS literal
> format the menu click event is not working. So I have tried to embed
> the menu instance in body element at that time it works in IE. Why
> it is so?
> Hope I'll get a quick answer.