Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
930
igmenu_getItemById not in IE?
posted

Previously, I asked the following question in the WebMenu forum without getting any answer, so I'll try again here:

I've created a context menu on my WebGrid using a WebMenu and set the ItemClick eventhandler in the code-behind as follows:

this.WebMenu1.MenuClientSideEvents.ItemClick = "menuClick";

The javascript function menuClick is as follows:

function menuClick(menuID, itemID) {
    item = igmenu_getItemById(itemID);
    itemText = item.getText();
    switch(itemText) {

..and so on.....

In Firefox everything works perfectly but when I click an item in the context menu in IE I get "Object doesn't support this action" when I reach

item = igmenu_getItemById(itemID);

Is the function not supported in IE?? Well, I hope not, so how come I get this error?

Parents
No Data
Reply Children