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
70
WebMenu - Stopping the click on clientside (NA-7.3)
posted

Is there a way to stop the user click on a menu item on the clientside? I tried with CancelPostBack and it seems not working.

My BLOCKED SCRIPT

function MasterMenu_ItemClick(menuId, itemId){

var MyCtl = recupereId("ctl00_ContentPlaceHolder1_btnApply");

try {

if (!MyCtl.disabled){

var Messg = 'Update not done. Do you want to continue ?';

if (!confirm(Messg)){

igmenu_getMenuById(menuId).CancelPostBack = true;
 
}

}

}

catch (e) {

//The btnApply not exist into this form

alert("e.description is: " + e.description);

}

}