This code works good in IE,
[HTML]function multiuser() {
document.frmOpenInteraction1.Create.disabled=true;
document.frmOpenInteraction1.hidmultiuser.value="Y es";
var r = showModalDialog('popup.htm','NEW',
'dialogWidth:400px;dialogHeight:155px;dialogLeft:2 00px;center:1;help: no; resizable: no; status: no; scroll: no;');
window.document.frmOpenInteraction1.ticket[0].checked=false;
window.document.frmOpenInteraction1.Create.disable d=false;
}
function nonmultiuser() {
document.frmOpenInteraction1.hidmultiuser.value="N o";
if(document.frmOpenInteraction1.Create.disabled) {
document.frmOpenInteraction1.Create.disabled=false ;
}
}
but, when this same code is used in firefox, it does not work. So i had to edit multiuser function. "showModalDialog" does not work in firefox.
function multiuser() {
document.frmOpenInteraction1.Create.disabled=true;
document.frmOpenInteraction1.hidmultiuser.value="Y es";
netscape.security.PrivilegeManager.enablePrivilege ('UniversalBrowserWrite');
var r = window.open('popup.htm?params='+ params +'', 'TEST', 'chrome,centerscreen,dependent=NO,dialog=YES,modal =YES,resizable=NO,scrollbars=NO,location=0,status= 0,menubar=0,toolbar=0,height='+Height+',width='+Wi dth+',left='+X+',top='+Y);
window.document.frmOpenInteraction1.ticket[0].checked=false;
window.document.frmOpenInteraction1.Create.disable d=false;
}
function nonmultiuser() {
document.frmOpenInteraction1.hidmultiuser.value="N o";
if(document.frmOpenInteraction1.Create.disabled) {
document.frmOpenInteraction1.Create.disabled=false ;
}
}
Now, the problem that i am facing is i do get the popup window when i select "yes" but, i am able to select "no" as well even though the popupwindow is enabled.
I have verified the name too, both have the same name.
<td valign="top"><input type="radio" name="ticket" value="Yes"onclick="multiuser()"></td>
<td colspan="2" class="FieldLabelRadio">No</td>
<td valign="top"><input type="radio" name="ticket" value="No"onclick="nonmultiuser()"></td>
</TD>
</TR>
</TABLE>
<div class="ExplanationText" align="center"><IMG src="images/skins/baja/required.gif" WIDTH=13pt HEIGHT=13pt BORDER=0>- Indicates a required field.</div>
<INPUT size="30" value="" name="hidmultiuser" type="hidden" id="hidmultiuser" tabindex="" /> <INPUT size="30" value="" name="hiduseroption" type="hidden" id="hiduseroption" tabindex="" />[/HTML]