hongjun
asked on
Visibility Strange in IE
Below is working strangely in IE.
It is all fine in FF.
Step 1: Select "Sub Admin"
Step 2: Click "View Module Assignment"
- For IE users, select "Super Admin" and you will see the many checkboxes appearing
- For FF users, you will see the checkboxes appear besides the div. This is what I want!
Please help me to get it to work on IE.
-------------------------- --------
<html>
<head>
<title>::PA Administration::</title>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<link rel="stylesheet" href="/PA/current/static/c ss/admin.c ss" type="text/css">
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="760" height="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td> </td>
</tr>
<tr>
<td valign="top" class="admHeader">Edit User Account</td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td valign="top" height="100%"><form name="frmEditAccount" method="post" action="adm010102b.asp" onSubmit="return Save();">
<input type="hidden" name="hdnSubmit" value="">
<input type="hidden" name="hdnAdminID" value="1">
<table width="100%" border="0" cellspacing="0" cellpadding="3" align="center">
<tr>
<td width="17%" valign="top" class="admSearchLabel">Log in Name *</td>
<td valign="top"><input type="text" name="txtName" size="50" maxlength="20" value="wphadmin"></td>
</tr>
<tr>
<td valign="top" class="admSearchLabel">Ema il *</td>
<td valign="top"><input type="text" name="txtEmail" size="50" maxlength="255" value="honchun.loh@wph.com .sg"></td>
</tr>
<tr>
<td valign="top" class="admSearchLabel">Adm in Type</td>
<td valign="top"><input type="radio" name="rdoAdminType" value="Super" checked onclick="document.frmEditA ccount.btn View.disab led=true"> Supe r Admin <i>(Check ing it will give user access to ALL modules)</i><br><input type="radio" name="rdoAdminType" value="Sub" onclick="document.frmEditA ccount.btn View.disab led=false" > Sub Admin
<input type="button" name="btnView" value="View Module Assignment" onclick="document.getEleme ntById('di vMod').sty le.visibil ity='visib le';docume nt.getElem entById('d ivMod').st yle.positi on='relati ve';" disabled>
<div id='divMod' style="visibility:hidden;p osition:ab solute">
<br><input type="checkbox" name="chkModule" value="1"> Account Management<br><input type="checkbox" name="chkModule" value="11"> Audit Management<br><input type="checkbox" name="chkModule" value="9"> eCalendar Management<br><input type="checkbox" name="chkModule" value="6"> eConsultat ion Management<br><input type="checkbox" name="chkModule" value="8"> eForums Management<br><input type="checkbox" name="chkModule" value="3"> eNewslette r Management<br><input type="checkbox" name="chkModule" value="5"> eRepositor y Management<br><input type="checkbox" name="chkModule" value="7"> eSurvey Management<br><input type="checkbox" name="chkModule" value="4"> Group List Management<br><input type="checkbox" name="chkModule" value="12"> Miscellan eous Management<br><input type="checkbox" name="chkModule" value="2"> Page Management<br><input type="checkbox" name="chkModule" value="10"> Report Management</div>
</td>
</tr>
<tr>
<td valign="top" class="admSearchLabel">Dis abled</td>
<td valign="top"><input type="checkbox" name="chkStatus" value="Status"></td>
</tr>
<tr>
<td valign="top" class="admSearchLabel">Cre ated By</td>
<td valign="top"></td>
</tr>
<tr>
<td valign="top" class="admSearchLabel">Cre ated Date</td>
<td valign="top">20-Jan-06 10:57:20 PM</td>
</tr>
<tr>
<td valign="top" colspan="2"> </td>
</tr>
<tr align="center">
<td colspan="2"><input type="submit" name="Submit" value=" Update " onClick="button(1);"> <input type="button" name="Cancel" value=" Cancel " onClick="self.location='ad m0101.asp' ;"></td>
</tr>
</table>
</form>
</td>
</tr>
<tr>
<td> </td>
</tr>
</table>
</body>
</html>
-------------------------- --------
hongjun
It is all fine in FF.
Step 1: Select "Sub Admin"
Step 2: Click "View Module Assignment"
- For IE users, select "Super Admin" and you will see the many checkboxes appearing
- For FF users, you will see the checkboxes appear besides the div. This is what I want!
Please help me to get it to work on IE.
--------------------------
<html>
<head>
<title>::PA Administration::</title>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<link rel="stylesheet" href="/PA/current/static/c
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="760" height="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td> </td>
</tr>
<tr>
<td valign="top" class="admHeader">Edit User Account</td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td valign="top" height="100%"><form name="frmEditAccount" method="post" action="adm010102b.asp" onSubmit="return Save();">
<input type="hidden" name="hdnSubmit" value="">
<input type="hidden" name="hdnAdminID" value="1">
<table width="100%" border="0" cellspacing="0" cellpadding="3" align="center">
<tr>
<td width="17%" valign="top" class="admSearchLabel">Log
<td valign="top"><input type="text" name="txtName" size="50" maxlength="20" value="wphadmin"></td>
</tr>
<tr>
<td valign="top" class="admSearchLabel">Ema
<td valign="top"><input type="text" name="txtEmail" size="50" maxlength="255" value="honchun.loh@wph.com
</tr>
<tr>
<td valign="top" class="admSearchLabel">Adm
<td valign="top"><input type="radio" name="rdoAdminType" value="Super" checked onclick="document.frmEditA
<input type="button" name="btnView" value="View Module Assignment" onclick="document.getEleme
<div id='divMod' style="visibility:hidden;p
<br><input type="checkbox" name="chkModule" value="1"> Account Management<br><input type="checkbox" name="chkModule" value="11"> Audit Management<br><input type="checkbox" name="chkModule" value="9"> eCalendar Management<br><input type="checkbox" name="chkModule" value="6"> eConsultat
</td>
</tr>
<tr>
<td valign="top" class="admSearchLabel">Dis
<td valign="top"><input type="checkbox" name="chkStatus" value="Status"></td>
</tr>
<tr>
<td valign="top" class="admSearchLabel">Cre
<td valign="top"></td>
</tr>
<tr>
<td valign="top" class="admSearchLabel">Cre
<td valign="top">20-Jan-06 10:57:20 PM</td>
</tr>
<tr>
<td valign="top" colspan="2"> </td>
</tr>
<tr align="center">
<td colspan="2"><input type="submit" name="Submit" value=" Update " onClick="button(1);"> <input type="button" name="Cancel" value=" Cancel " onClick="self.location='ad
</tr>
</table>
</form>
</td>
</tr>
<tr>
<td> </td>
</tr>
</table>
</body>
</html>
--------------------------
hongjun
ASKER
The problem is still there.
I still need to perform the below step
- For IE users, select "Super Admin" and you will see the many checkboxes appearing
hongjun
I still need to perform the below step
- For IE users, select "Super Admin" and you will see the many checkboxes appearing
hongjun
when the page loads though, super admin is selected. if i click sub admins and then click the button, they appear, then i click super admins again they remain. Based on this where is the error?
ASKER
>> if i click sub admins and then click the button, they appear
The many lines of words appear but the checkboxes beside those lines don't :(
>> then i click super admins again they remain
When I click on "Super Admin", those checkboxes appear!
My desired output is
- The many lines of words appear together with their checkboxes beside them when I click the button.
If you have FF, try it and you will see the differences.
hongjun
The many lines of words appear but the checkboxes beside those lines don't :(
>> then i click super admins again they remain
When I click on "Super Admin", those checkboxes appear!
My desired output is
- The many lines of words appear together with their checkboxes beside them when I click the button.
If you have FF, try it and you will see the differences.
hongjun
ASKER
Can anyone help?
Sorry i pasted the wrong code before. When i tried this code, it works as you ask in IE
<html>
<head>
<title>::PA Administration::</title>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<link rel="stylesheet" href="/PA/current/static/c ss/admin.c ss" type="text/css">
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="760" height="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td> </td>
</tr>
<tr>
<td valign="top" class="admHeader">Edit User Account</td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td valign="top" height="100%"><form name="frmEditAccount" method="post" action="adm010102b.asp" onSubmit="return Save();">
<input type="hidden" name="hdnSubmit" value="">
<input type="hidden" name="hdnAdminID" value="1">
<table width="100%" border="0" cellspacing="0" cellpadding="3" align="center">
<tr>
<td width="17%" valign="top" class="admSearchLabel">Log in Name *</td>
<td valign="top"><input type="text" name="txtName" size="50" maxlength="20" value="wphadmin"></td>
</tr>
<tr>
<td valign="top" class="admSearchLabel">Ema il *</td>
<td valign="top"><input type="text" name="txtEmail" size="50" maxlength="255" value="honchun.loh@wph.com .sg"></td>
</tr>
<tr>
<td valign="top" class="admSearchLabel">Adm in Type</td>
<td valign="top"><input type="radio" name="rdoAdminType" value="Super" checked onclick="document.frmEditA ccount.btn View.disab led=true"> Supe r Admin <i>(Check ing it will give user access to ALL modules)</i><br><input type="radio" name="rdoAdminType" value="Sub" onclick="document.frmEditA ccount.btn View.disab led=false" > Sub Admin
<input type="button" name="btnView" value="View Module Assignment" onclick="document.getEleme ntById('di vMod').sty le.visibil ity='visib le';docume nt.getElem entById('d ivMod').st yle.positi on='relati ve';" disabled>
<div id='divMod' style="visibility:hidden;" >
<br><input type="checkbox" name="chkModule" value="1"> Account Management<br><input type="checkbox" name="chkModule" value="11"> Audit Management<br><input type="checkbox" name="chkModule" value="9"> eCalendar Management<br><input type="checkbox" name="chkModule" value="6"> eConsultat ion Management<br><input type="checkbox" name="chkModule" value="8"> eForums Management<br><input type="checkbox" name="chkModule" value="3"> eNewslette r Management<br><input type="checkbox" name="chkModule" value="5"> eRepositor y Management<br><input type="checkbox" name="chkModule" value="7"> eSurvey Management<br><input type="checkbox" name="chkModule" value="4"> Group List Management<br><input type="checkbox" name="chkModule" value="12"> Miscellan eous Management<br><input type="checkbox" name="chkModule" value="2"> Page Management<br><input type="checkbox" name="chkModule" value="10"> Report Management</div>
</td>
</tr>
<tr>
<td valign="top" class="admSearchLabel">Dis abled</td>
<td valign="top"><input type="checkbox" name="chkStatus" value="Status"></td>
</tr>
<tr>
<td valign="top" class="admSearchLabel">Cre ated By</td>
<td valign="top"></td>
</tr>
<tr>
<td valign="top" class="admSearchLabel">Cre ated Date</td>
<td valign="top">20-Jan-06 10:57:20 PM</td>
</tr>
<tr>
<td valign="top" colspan="2"> </td>
</tr>
<tr align="center">
<td colspan="2"><input type="submit" name="Submit" value=" Update " onClick="button(1);"> <input type="button" name="Cancel" value=" Cancel " onClick="self.location='ad m0101.asp' ;"></td>
</tr>
</table>
</form>
</td>
</tr>
<tr>
<td> </td>
</tr>
</table>
</body>
</html>
<html>
<head>
<title>::PA Administration::</title>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<link rel="stylesheet" href="/PA/current/static/c
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="760" height="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td> </td>
</tr>
<tr>
<td valign="top" class="admHeader">Edit User Account</td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td valign="top" height="100%"><form name="frmEditAccount" method="post" action="adm010102b.asp" onSubmit="return Save();">
<input type="hidden" name="hdnSubmit" value="">
<input type="hidden" name="hdnAdminID" value="1">
<table width="100%" border="0" cellspacing="0" cellpadding="3" align="center">
<tr>
<td width="17%" valign="top" class="admSearchLabel">Log
<td valign="top"><input type="text" name="txtName" size="50" maxlength="20" value="wphadmin"></td>
</tr>
<tr>
<td valign="top" class="admSearchLabel">Ema
<td valign="top"><input type="text" name="txtEmail" size="50" maxlength="255" value="honchun.loh@wph.com
</tr>
<tr>
<td valign="top" class="admSearchLabel">Adm
<td valign="top"><input type="radio" name="rdoAdminType" value="Super" checked onclick="document.frmEditA
<input type="button" name="btnView" value="View Module Assignment" onclick="document.getEleme
<div id='divMod' style="visibility:hidden;"
<br><input type="checkbox" name="chkModule" value="1"> Account Management<br><input type="checkbox" name="chkModule" value="11"> Audit Management<br><input type="checkbox" name="chkModule" value="9"> eCalendar Management<br><input type="checkbox" name="chkModule" value="6"> eConsultat
</td>
</tr>
<tr>
<td valign="top" class="admSearchLabel">Dis
<td valign="top"><input type="checkbox" name="chkStatus" value="Status"></td>
</tr>
<tr>
<td valign="top" class="admSearchLabel">Cre
<td valign="top"></td>
</tr>
<tr>
<td valign="top" class="admSearchLabel">Cre
<td valign="top">20-Jan-06 10:57:20 PM</td>
</tr>
<tr>
<td valign="top" colspan="2"> </td>
</tr>
<tr align="center">
<td colspan="2"><input type="submit" name="Submit" value=" Update " onClick="button(1);"> <input type="button" name="Cancel" value=" Cancel " onClick="self.location='ad
</tr>
</table>
</form>
</td>
</tr>
<tr>
<td> </td>
</tr>
</table>
</body>
</html>
ASKER
What did you change?
in your DIV you had a position absolute, i took that out, because you were assigning a relative position to everything else, well somethings lol. That ok?
ASKER
ERM.. Don't think it is okay with the big gap there.
what big gap.
ASKER
Because the position:relative is removed, there is a white space gap between Admin Type and Disabled reserved for the invisible checkboxes.
hongjun
Could you not use a javascript to set the clipping of the div, so that you can still keep the position absolute?
Could you not use a javascript to set the clipping of the div, so that you can still keep the position absolute?
ASKER
Yes.
As long as it will give me the effect I want and it must work on both IE and FF.
As long as it will give me the effect I want and it must work on both IE and FF.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Forgot to thank you.
THANKS!
THANKS!
no problem, glad to have helped
<html>
<head>
<title>::PA Administration::</title>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<link rel="stylesheet" href="/PA/current/static/c
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="760" height="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td> </td>
</tr>
<tr>
<td valign="top" class="admHeader">Edit User Account</td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td valign="top" height="100%"><form name="frmEditAccount" method="post" action="adm010102b.asp" onSubmit="return Save();">
<input type="hidden" name="hdnSubmit" value="">
<input type="hidden" name="hdnAdminID" value="1">
<table width="100%" border="0" cellspacing="0" cellpadding="3" align="center">
<tr>
<td width="17%" valign="top" class="admSearchLabel">Log
<td valign="top"><input type="text" name="txtName" size="50" maxlength="20" value="wphadmin"></td>
</tr>
<tr>
<td valign="top" class="admSearchLabel">Ema
<td valign="top"><input type="text" name="txtEmail" size="50" maxlength="255" value="honchun.loh@wph.com
</tr>
<tr>
<td valign="top" class="admSearchLabel">Adm
<td valign="top"><input type="radio" name="rdoAdminType" value="Super" checked onclick="document.frmEditA
<input type="button" name="btnView" value="View Module Assignment" onclick="document.getEleme
<div id='divMod' style="visibility:hidden;p
<br><input type="checkbox" name="chkModule" value="1"> Account Management<br><input type="checkbox" name="chkModule" value="11"> Audit Management<br><input type="checkbox" name="chkModule" value="9"> eCalendar Management<br><input type="checkbox" name="chkModule" value="6"> eConsultat
</td>
</tr>
<tr>
<td valign="top" class="admSearchLabel">Dis
<td valign="top"><input type="checkbox" name="chkStatus" value="Status"></td>
</tr>
<tr>
<td valign="top" class="admSearchLabel">Cre
<td valign="top"></td>
</tr>
<tr>
<td valign="top" class="admSearchLabel">Cre
<td valign="top">20-Jan-06 10:57:20 PM</td>
</tr>
<tr>
<td valign="top" colspan="2"> </td>
</tr>
<tr align="center">
<td colspan="2"><input type="submit" name="Submit" value=" Update " onClick="button(1);"> <input type="button" name="Cancel" value=" Cancel " onClick="self.location='ad
</tr>
</table>
</form>
</td>
</tr>
<tr>
<td> </td>
</tr>
</table>
</body>
</html>