Hello, I'm using dhtmlXCombo in one of my JSP Pages.

Hello, I’m using dhtmlXCombo in one of my JSP Pages.Please find the below code Snippet.In the username textbox,if we enter the admin and Administrator checkbox is checked.Then click submit…it goes to Page cannot be displayed. After removed the customCombo.disable(true)(From disableApplication())…if we submit it…it works fine…But i need to disable the combo before submit if username is admin Please give me a solution.Thanks! Included File <script src=‘scripts/grid/dhtmlxcommon.js’ type=‘text/javascript’></script> <script src=‘scripts/grid/dhtmlxcombo.js’ type=‘text/javascript’></script> <script type=‘text/javascript’> //setting the path for the image grid combo uses window.dhx_globalImgPath=’./images/grid/’; </script> Validation if(theForm.adminLogin.checked == true){ document.frm.submit(); disabling combo function disableApplication(){ if (document.getElementById) { theForm = document.getElementById(‘frm’); } if(theForm.adminLogin.checked == true){ customCombo.disable(true); } else { customCombo.disable(false); } } Form <dl> <dt><label>Username</label></dt> <dd><input type=‘text’ name=‘userName’/></dd> <dt> </dt> <dd> <input type=‘checkbox’ name=‘adminLogin’ onClick=‘disableApplication()’ /> <label> Administrator</label></dd> <dt><label>Project</label></dt> <dd> <div id = ‘applicationId’ > <input type=‘hidden’ name=‘applicationId’ id=‘applicationId’/> </div> <!-- <select name=‘applicationId’ style=‘width:137px’> <option value=‘sel’>Select</option> <c:forEach var=‘application’ items=’${ForgotPasswordVO.applicationList}’ > <option value=’<c:out value=’${application.projectId}’/>’><c:out value=’${application.projectName}’/></option> </c:forEach> </select> --> </dd> <dt> </dt> <dt> </dt> <dd><a href=’#’ class=‘linkButton’ onclick=‘validateAll()’><span class=‘forgotPwdIcon’>Submit</span></a></dd> <dd><a href=’#’ onclick=‘goBackToLogin()’>Back to Login page</a></dd> </dl> dhtmlXCombo <script type=‘text/javascript’> customCombo = new dhtmlXCombo(‘applicationId’,‘alfa2’,150); customCombo.addOption([[’-1’,’-- Select --’]]); customCombo.selectOption( 0 ); customCombo.readonly(true); <c:forEach var=‘application’ items=’${ForgotPasswordVO.applicationList}’ > customCombo.addOption([[’<c:out value=’${application.projectId}’/>’,’<c:out value=’${application.projectName}’/>’]]); </c:forEach> </script>


Problem still can’t be reconstructed.
Please check attached sample



call of combo.disable(true) must not cause any effect on surrounding form


1211376706.zip (16 KB)