sureshp
asked on
Radio button should display the corresponding textboxes
Hi all,
Please check my html code and add a script.
In my html page contains two radio buttons
1. Add License
2. Renew License
By default Add License value will display.
My problem is that if i choose the Renew License option
i need to display these textboxes..(instead of default display these textbox should be displayed).
Extra Licenses:
Extra period :
Expiry Date :
How can i do this?
My html code is:
<html>
<head>
<title>Center.com</title>
<style type="text/css">
<!--
.texttitle {font-family: Arial, Helvetica, sans-serif; font-size: 11pt; font-weight: bold; color: #993333}
.pagetext {font-family: Arial, Helvetica, sans-serif; font-size: 9pt; color: #333333}
.boldtext {font-family: Arial, Helvetica, sans-serif; font-size: 9pt; font-weight: bold; color: #993333}
-->
</style>
</head>
<body bgcolor="#FFFFFF" background="/images/com/uu _nhome_bg. gif" link="#993333" vlink="#993333" alink="#993333">
<table width="92%" border="0" cellspacing="0" cellpadding="0" align="center" bordercolor="#CCCCCC" height="100%">
<tr>
<td bgcolor="#F9F9F9" height="2">
<table width="100%" border="0" cellspacing="0" cellpadding="0" bordercolor="#CCCCCC">
<tr bgcolor="#CCCCCC">
<td><img src="/images/com/transpare nt.gif" width="1" height="10"></td>
</tr>
</table>
</td>
</tr>
<tr bgcolor="#DFDFDF">
<td width="31" height="19">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="3%"><img src="/images/com/uuc_logo_ new.gif" width="28" height="28" hspace="5"></td>
<td width="97%" valign="bottom">
<div align="right"><span class="texttitle"></span>< /div>
<span class="texttitle"><i><font color="#CC0000"></font></i ><font color="#CC0000"><b>Center. com</b></f ont></span ></td>
</tr>
</table>
</td>
</tr>
<tr bgcolor="#F9F9F9" valign="top">
<td>
<table width="100%" border="1" cellspacing="0" cellpadding="0" bordercolor="#CCCCCC" height="100%">
<tr valign="top">
<td height="217">
<table width="85%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td>
<div align="left"> </div>
</td>
</tr>
<tr>
<td><font size="3" class="texttitle">
Add/Renew License for bpa.4meweb.com
</font></td>
</tr>
<tr>
<td bgcolor="#999999"><img src="/images/com/transpare nt.gif" width="1" height="1"></td>
</tr>
<tr>
<td class="pagetext"><span class="pagetext">
<table width="100%" border="0" cellpadding="5">
<tr>
<td><div align="center"><font face="Arial, Helvetica, sans-serif" size=3><!-- --></font></div></td>
</tr>
<tr>
<td height="86">
<blockquote>
<div align="center">
<p><font face="Arial, Helvetica, sans-serif" size=2>
<form name="frmRenew" method="post" action="/cgi/com/UU_purcha seToolLice nse.cgi">
<input type="hidden" name="username" value="bpa">
<input type="hidden" name="domain_name" value="4meweb.com">
<input type="hidden" name="user_no" value="832725">
<input type="hidden" name="Session_ID" value="saQjky9l8B.BA0.2583 0652192235 ">
<input type="hidden" name="name" value="bpa">
<input type="hidden" name="user_type" value="M">
<input type="hidden" name="licenses" value="5">
<table border=0>
<tr><th>Tool</th><th>Licen ses</th><t h>Exp Date</th></tr>
<tr><td> One </td><td align="center"><font color=""> 5 </font></td><td><font color=""> 03-Mar-2001 </font></td></tr>
<tr><td> Two </td><td align="center"><font color=""> 5 </font></td><td><font color=""> 03-Mar-2001 </font></td></tr>
<tr><td> Three </td><td align="center"><font color=""> 5 </font></td><td><font color=""> 03-Mar-2001 </font></td></tr>
<tr><td> Four </td><td align="center"><font color=""> 5 </font></td><td><font color=""> 03-Mar-2001 </font></td></tr>
<tr><td> Five </td><td align="center"><font color=""> 5 </font></td><td><font color=""> 03-Mar-2001 </font></td></tr>
<tr><td> Six </td><td align="center"><font color=""> 5 </font></td><td><font color=""> 03-Mar-2001 </font></td></tr>
<tr><td> Seven </td><td align="center"><font color=""> 5 </font></td><td><font color=""> 03-Mar-2001 </font></td></tr>
<tr><td> Eight </td><td align="center"><font color=""> 5 </font></td><td><font color=""> 03-Mar-2001 </font></td></tr>
<tr><td> Nine </td><td align="center"><font color=""> 5 </font></td><td><font color=""> 03-Mar-2001 </font></td></tr>
</table>
<br><font size="2">Select any one. <br> <input type="radio" name="add" value="" checked=true>Add Licenses<br> &n bsp; <input type="radio" name="add" value="">Renew Licenses<br> <a href=/html/com/addrenewhel p.html>Cli ck here</a> for help.</font>
<br>
<table width="85%" border="0" cellspacing="0" cellpadding="0">
<tr> <td>
<div align="right"><font face="Arial, Helvetica, sans-serif" size="2">Extra Licenses: </font></div> </td>
<td> <input type="text" name="license" value="" maxlength="3" size="6">
</td>
</tr>
<tr>
<td> <div align="right"><font face="Arial, Helvetica, sans-serif" size="2">Extra
period : </font></div> </td>
<td> <input type="text" name="period" value=""> </td>
</tr>
<tr> <td>
<div align="right"><font face="Arial, Helvetica, sans-serif" size="2">From
Date : </font></div> </td>
<td>
<select name="startDate">
<option selected>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
<option>6</option>
<option>7</option>
<option>8</option>
<option>9</option>
<option>10</option>
<option>11</option>
<option>12</option>
<option>13</option>
<option>14</option>
<option>15</option>
<option>16</option>
<option>17</option>
<option>18</option>
<option>19</option>
<option>20</option>
<option>21</option>
<option>22</option>
<option>23</option>
<option>24</option>
<option>25</option>
<option>26</option>
<option>27</option>
<option>28</option>
<option>29</option>
<option>30</option>
<option>31</option>
</select>
<select name=monthSelect>
<option selected >Jan</option>
<option>Feb</option>
<option >Mar</option>
<option >Apr</option>
<option >May</option>
<option >Jun</option>
<option >Jul</option>
<option >Aug</option>
<option >Sep</option>
<option >Oct</option>
<option >Nov</option>
<option >Dec</option>
</select>
<select name=yearSelect>
<option>2000</option>
<option selected>2001</option>
<option>2002</option>
<option>2003</option>
<option>2004</option>
<option>2005</option>
<option>2006</option>
<option>2007</option>
<option>2008</option>
<option>2009</option>
<option>2010</option>
</select>
</td>
</tr>
<tr>
<td>
<div align="right"><font face="Arial, Helvetica, sans-serif" size="2">Expiry
Date : </font></div>
</td>
<td>
<input type="text" name="newexpdate" value="03-Mar-2001" readonly>
</td>
</tr>
<tr>
<td>
<div align="right">
<input type="submit" name="btnAddSpace" value=" Add/Renew" onClick="frmRenew.submit() ">
</div>
</td>
<td>
<input type="button" name="btnCancel" value=" Cancel " onClick="javascript:window .close()">
</td>
</tr>
</table>
</form>
</body>
</html>
Thanks in advance
Please check my html code and add a script.
In my html page contains two radio buttons
1. Add License
2. Renew License
By default Add License value will display.
My problem is that if i choose the Renew License option
i need to display these textboxes..(instead of default display these textbox should be displayed).
Extra Licenses:
Extra period :
Expiry Date :
How can i do this?
My html code is:
<html>
<head>
<title>Center.com</title>
<style type="text/css">
<!--
.texttitle {font-family: Arial, Helvetica, sans-serif; font-size: 11pt; font-weight: bold; color: #993333}
.pagetext {font-family: Arial, Helvetica, sans-serif; font-size: 9pt; color: #333333}
.boldtext {font-family: Arial, Helvetica, sans-serif; font-size: 9pt; font-weight: bold; color: #993333}
-->
</style>
</head>
<body bgcolor="#FFFFFF" background="/images/com/uu
<table width="92%" border="0" cellspacing="0" cellpadding="0" align="center" bordercolor="#CCCCCC" height="100%">
<tr>
<td bgcolor="#F9F9F9" height="2">
<table width="100%" border="0" cellspacing="0" cellpadding="0" bordercolor="#CCCCCC">
<tr bgcolor="#CCCCCC">
<td><img src="/images/com/transpare
</tr>
</table>
</td>
</tr>
<tr bgcolor="#DFDFDF">
<td width="31" height="19">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="3%"><img src="/images/com/uuc_logo_
<td width="97%" valign="bottom">
<div align="right"><span class="texttitle"></span><
<span class="texttitle"><i><font
</tr>
</table>
</td>
</tr>
<tr bgcolor="#F9F9F9" valign="top">
<td>
<table width="100%" border="1" cellspacing="0" cellpadding="0" bordercolor="#CCCCCC" height="100%">
<tr valign="top">
<td height="217">
<table width="85%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td>
<div align="left"> </div>
</td>
</tr>
<tr>
<td><font size="3" class="texttitle">
Add/Renew License for bpa.4meweb.com
</font></td>
</tr>
<tr>
<td bgcolor="#999999"><img src="/images/com/transpare
</tr>
<tr>
<td class="pagetext"><span class="pagetext">
<table width="100%" border="0" cellpadding="5">
<tr>
<td><div align="center"><font face="Arial, Helvetica, sans-serif" size=3><!-- --></font></div></td>
</tr>
<tr>
<td height="86">
<blockquote>
<div align="center">
<p><font face="Arial, Helvetica, sans-serif" size=2>
<form name="frmRenew" method="post" action="/cgi/com/UU_purcha
<input type="hidden" name="username" value="bpa">
<input type="hidden" name="domain_name" value="4meweb.com">
<input type="hidden" name="user_no" value="832725">
<input type="hidden" name="Session_ID" value="saQjky9l8B.BA0.2583
<input type="hidden" name="name" value="bpa">
<input type="hidden" name="user_type" value="M">
<input type="hidden" name="licenses" value="5">
<table border=0>
<tr><th>Tool</th><th>Licen
<tr><td> One </td><td align="center"><font color=""> 5 </font></td><td><font color=""> 03-Mar-2001 </font></td></tr>
<tr><td> Two </td><td align="center"><font color=""> 5 </font></td><td><font color=""> 03-Mar-2001 </font></td></tr>
<tr><td> Three </td><td align="center"><font color=""> 5 </font></td><td><font color=""> 03-Mar-2001 </font></td></tr>
<tr><td> Four </td><td align="center"><font color=""> 5 </font></td><td><font color=""> 03-Mar-2001 </font></td></tr>
<tr><td> Five </td><td align="center"><font color=""> 5 </font></td><td><font color=""> 03-Mar-2001 </font></td></tr>
<tr><td> Six </td><td align="center"><font color=""> 5 </font></td><td><font color=""> 03-Mar-2001 </font></td></tr>
<tr><td> Seven </td><td align="center"><font color=""> 5 </font></td><td><font color=""> 03-Mar-2001 </font></td></tr>
<tr><td> Eight </td><td align="center"><font color=""> 5 </font></td><td><font color=""> 03-Mar-2001 </font></td></tr>
<tr><td> Nine </td><td align="center"><font color=""> 5 </font></td><td><font color=""> 03-Mar-2001 </font></td></tr>
</table>
<br><font size="2">Select any one. <br> <input type="radio" name="add" value="" checked=true>Add Licenses<br> &n
<br>
<table width="85%" border="0" cellspacing="0" cellpadding="0">
<tr> <td>
<div align="right"><font face="Arial, Helvetica, sans-serif" size="2">Extra Licenses: </font></div> </td>
<td> <input type="text" name="license" value="" maxlength="3" size="6">
</td>
</tr>
<tr>
<td> <div align="right"><font face="Arial, Helvetica, sans-serif" size="2">Extra
period : </font></div> </td>
<td> <input type="text" name="period" value=""> </td>
</tr>
<tr> <td>
<div align="right"><font face="Arial, Helvetica, sans-serif" size="2">From
Date : </font></div> </td>
<td>
<select name="startDate">
<option selected>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
<option>6</option>
<option>7</option>
<option>8</option>
<option>9</option>
<option>10</option>
<option>11</option>
<option>12</option>
<option>13</option>
<option>14</option>
<option>15</option>
<option>16</option>
<option>17</option>
<option>18</option>
<option>19</option>
<option>20</option>
<option>21</option>
<option>22</option>
<option>23</option>
<option>24</option>
<option>25</option>
<option>26</option>
<option>27</option>
<option>28</option>
<option>29</option>
<option>30</option>
<option>31</option>
</select>
<select name=monthSelect>
<option selected >Jan</option>
<option>Feb</option>
<option >Mar</option>
<option >Apr</option>
<option >May</option>
<option >Jun</option>
<option >Jul</option>
<option >Aug</option>
<option >Sep</option>
<option >Oct</option>
<option >Nov</option>
<option >Dec</option>
</select>
<select name=yearSelect>
<option>2000</option>
<option selected>2001</option>
<option>2002</option>
<option>2003</option>
<option>2004</option>
<option>2005</option>
<option>2006</option>
<option>2007</option>
<option>2008</option>
<option>2009</option>
<option>2010</option>
</select>
</td>
</tr>
<tr>
<td>
<div align="right"><font face="Arial, Helvetica, sans-serif" size="2">Expiry
Date : </font></div>
</td>
<td>
<input type="text" name="newexpdate" value="03-Mar-2001" readonly>
</td>
</tr>
<tr>
<td>
<div align="right">
<input type="submit" name="btnAddSpace" value=" Add/Renew" onClick="frmRenew.submit()
</div>
</td>
<td>
<input type="button" name="btnCancel" value=" Cancel " onClick="javascript:window
</td>
</tr>
</table>
</form>
</body>
</html>
Thanks in advance
ASKER
nilapenn,
Thanks for your comment.
By default (Add Licenses), need to display 3 textboxes(except from field).
Accoding to your maodified code by default it doesn't show any textboxes.
Pls try to give a solution. Thanks in advance.
selecting radio button(by default--need to show 3 text boxes).
while selecting Renew Licenses ., need to show 3 textboxes and a combobox.
Thanks for your comment.
By default (Add Licenses), need to display 3 textboxes(except from field).
Accoding to your maodified code by default it doesn't show any textboxes.
Pls try to give a solution. Thanks in advance.
selecting radio button(by default--need to show 3 text boxes).
while selecting Renew Licenses ., need to show 3 textboxes and a combobox.
ASKER
I am ready to add 150 Expert points.
Pls provide a solution(for ie and netscape).
Pls provide a solution(for ie and netscape).
ASKER
nilapenn,
Is there any method to do this problem?
If you a contact mail id ., pls post here.
Is there any method to do this problem?
If you a contact mail id ., pls post here.
If you post a 0 point question pointing at this, I am sure someone will help. Alternatively delete the question and repost it with more points
I have so little time, sorry
Michel
I have so little time, sorry
Michel
You can try to make the 3 text boxes read only insteda of visible/invisible.
something like
Extra Licenses: <input type=text name=textbox1 READONLY>
Extra period : <input type=text name=textbox2 READONLY>
Expiry Date : <input type=text name=textbox3 READONLY>
when the radio button is changed, make them editable
<input type=radio value="r" name="rad1" onBlur="javascript:chkrad( );">Add
<input type=radio value="r">Renew
<script>
function chkrad()
{
if(document.formname.rad1. [0].checke d
{
//Add
document.form.textbox1.dis abled=true ;
document.form.textbox2.dis abled=true ;
document.form.textbox3.dis abled=true ;
}
else if(document.formname.rad1. [1].checke d
{
//Renew
document.form.textbox1.dis abled=fals e;
document.form.textbox2.dis abled=fals e;
document.form.textbox3.dis abled=fals e;
}
}
</script>
hope this helps..
something like
Extra Licenses: <input type=text name=textbox1 READONLY>
Extra period : <input type=text name=textbox2 READONLY>
Expiry Date : <input type=text name=textbox3 READONLY>
when the radio button is changed, make them editable
<input type=radio value="r" name="rad1" onBlur="javascript:chkrad(
<input type=radio value="r">Renew
<script>
function chkrad()
{
if(document.formname.rad1.
{
//Add
document.form.textbox1.dis
document.form.textbox2.dis
document.form.textbox3.dis
}
else if(document.formname.rad1.
{
//Renew
document.form.textbox1.dis
document.form.textbox2.dis
document.form.textbox3.dis
}
}
</script>
hope this helps..
hai,
Instead of radio button we use selection list and hide the
input text and enable whenever we want.
I think this will useful, try this,
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<TITLE>BSNL Administration</TITLE>
<SCRIPT ID=clientEventHandlersJS LANGUAGE=javascript>
<!--
function pbx_validate(pbxPair,mdfSe l,mdfPair)
{
//Checks PBX pair no empty
if(pbxPair=="")
{
alert("Please enter the PBX pair number")
document.form1.text4.focus ()
}
//Checks PBX pair no is a number
else if(isNaN(pbxPair))
{
alert("Please enter numerical PBX pair value")
document.form1.text4.value = ""
document.form1.text4.focus ()
}
//call mdf_validate(mdfSel,mdfPai r) with two parameter as shown
else
{
mdf_validate(mdfSel,mdfPai r);
}
}
function mdf_validate(mdfSel,mdfPai r)
{
//checks mdfSel Null value
if(mdfSel=="")
{
alert("Please select MDF selction");
document.form1.select4.foc us()
}
//checks mdfPair Null value
else if(mdfPair=="")
{
alert("Please enter the MDF pair number");
document.form1.text5.value = ""
document.form1.text5.focus ()
}
//checks mdfPair Number Only value
else if(isNaN(mdfPair))
{
alert("Please enter numerical MDF pair value")
document.form1.text5.value = ""
document.form1.text5.focus ()
}
//checks Telephone
else if(document.form1.select1. value =="Telephone")
{
// calls the phone_validate function if selection is Telephone
phone_validate()
}
//checks Leased Line
else if(document.form1.select1. value =="LeasedLine")
{
//calls leasedline_validate function if selection is Leases Line
leasedline_validate()
}
}
function phone_validate()
{
//Checks the phone number empty or not
if(document.form1.text8.va lue=="")
{
alert("Please enter Phone Number");
document.form1.text8.focus ()
}
//Checks the Phone numbers numberical value
else if(isNaN(document.form1.te xt8.value) )
{
alert("Please enter numerical Phone NUmber")
document.form1.text8.value = ""
document.form1.text8.focus ()
}
}
function leasedline_validate()
{
//Checks the Source type Pair Number2 Whether empty or not
if(document.form1.text6.va lue=="")
{
alert("Please enter Source Type Pair Number2");
document.form1.text6.focus ()
}
//Checks numerical value of Pair Number2
else if(isNaN(document.form1.te xt6.value) )
{
alert("Please enter numerical Source Type Pair Number2")
document.form1.text6.value = ""
document.form1.text6.focus ()
}
}
//when window first loads this function called
function window_onload()
{
{
document.form1.Label1.styl e.visibili ty="hidden "
document.form1.text4.style .visibilit y="hidden"
document.form1.Label2.styl e.visibili ty="hidden "
document.form1.select4.sty le.visibil ity="hidde n"
document.form1.Label3.styl e.visibili ty="hidden "
document.form1.text5.style .visibilit y="hidden"
document.form1.Label4.styl e.visibili ty="hidden "
document.form1.text6.style .visibilit y="hidden"
document.form1.Label5.styl e.visibili ty="hidden "
document.form1.text7.style .visibilit y="hidden"
document.form1.Label6.styl e.visibili ty="hidden "
document.form1.radio1.styl e.visibili ty="hidden "
document.form1.Label7.styl e.visibili ty="hidden "
document.form1.radio2.styl e.visibili ty="hidden "
document.form1.Label8.styl e.visibili ty="hidden "
document.form1.text8.style .visibilit y="hidden"
}
}
function select1_onchange()
{
var cirtype = document.form1.select1.val ue
if(cirtype == "LeasedLine")
{ //if circuit type is leased line then two souce type pair number is necessary
if(document.form1.select3. value!="")
{
document.form1.Label5.styl e.visibili ty="visibl e"
document.form1.text7.style .visibilit y="visible "
}
document.form1.Label6.styl e.visibili ty="hidden "
document.form1.radio1.styl e.visibili ty="hidden "
document.form1.Label7.styl e.visibili ty="hidden "
document.form1.radio2.styl e.visibili ty="hidden "
document.form1.Label8.styl e.visibili ty="hidden "
document.form1.text8.style .visibilit y="hidden"
document.form1.Label4.styl e.visibili ty="visibl e"
document.form1.text6.style .visibilit y="visible "
}
else if(cirtype == "Telephone")
{
document.form1.Label6.styl e.visibili ty="visibl e"
document.form1.radio1.styl e.visibili ty="visibl e"
document.form1.Label7.styl e.visibili ty="visibl e"
document.form1.radio2.styl e.visibili ty="visibl e"
document.form1.Label8.styl e.visibili ty="visibl e"
document.form1.text8.style .visibilit y="visible "
document.form1.Label4.styl e.visibili ty="hidden "
document.form1.text6.style .visibilit y="hidden"
document.form1.Label5.styl e.visibili ty="hidden "
document.form1.text7.style .visibilit y="hidden"
}
else
{
document.form1.Label6.styl e.visibili ty="hidden "
document.form1.radio1.styl e.visibili ty="hidden "
document.form1.Label7.styl e.visibili ty="hidden "
document.form1.radio2.styl e.visibili ty="hidden "
document.form1.Label8.styl e.visibili ty="hidden "
document.form1.text8.style .visibilit y="hidden"
document.form1.Label4.styl e.visibili ty="hidden "
document.form1.text6.style .visibilit y="hidden"
document.form1.Label5.styl e.visibili ty="hidden "
document.form1.text7.style .visibilit y="hidden"
}
}
//This whole function is to hide and make visible the mdf and pbx selection
function select3_onchange()
{
var port = document.form1.select3.val ue
if(port == "MDF")
{
if(document.form1.select1. value=="Le asedLine")
{
document.form1.Label5.styl e.visibili ty="visibl e"
document.form1.text7.style .visibilit y="visible "
}
if( document.form1.teleSource[ 1].checked )
{
document.form1.Label5.styl e.visibili ty="visibl e"
document.form1.text7.style .visibilit y="visible "
}
document.form1.Label1.styl e.visibili ty="hidden "
document.form1.text4.style .visibilit y="hidden"
document.form1.Label2.styl e.visibili ty="visibl e"
document.form1.select4.sty le.visibil ity="visib le"
document.form1.Label3.styl e.visibili ty="visibl e"
document.form1.text5.style .visibilit y="visible "
}
else if(port == "PBX")
{
if(document.form1.select1. value=="Le asedLine")
{
document.form1.Label5.styl e.visibili ty="visibl e"
document.form1.text7.style .visibilit y="visible "
}
if( document.form1.teleSource[ 1].checked )
{
document.form1.Label5.styl e.visibili ty="visibl e"
document.form1.text7.style .visibilit y="visible "
}
document.form1.Label1.styl e.visibili ty="visibl e"
document.form1.text4.style .visibilit y="visible "
document.form1.Label2.styl e.visibili ty="visibl e"
document.form1.select4.sty le.visibil ity="visib le"
document.form1.Label3.styl e.visibili ty="visibl e"
document.form1.text5.style .visibilit y="visible "
}
else if(port=="")
{
document.form1.Label1.styl e.visibili ty="hidden "
document.form1.text4.style .visibilit y="hidden"
document.form1.Label2.styl e.visibili ty="hidden "
document.form1.select4.sty le.visibil ity="hidde n"
document.form1.Label3.styl e.visibili ty="hidden "
document.form1.text5.style .visibilit y="hidden"
document.form1.Label5.styl e.visibili ty="hidden "
document.form1.text7.style .visibilit y="hidden"
}
}
function button1_onfocus()
{
if(document.form1.select1. value=="")
{
alert("Please select the Circuit Type");
document.form1.select1.foc us()
}
else if(document.form1.text1.va lue=="")
{
alert("Please enter the link name");
document.form1.text1.focus ()
}
else if(document.form1.text2.va lue=="")
{
alert("Please enter the description");
document.form1.text2.focus ()
}
else if(document.form1.select2. value=="")
{
alert("Please select the source type");
document.form1.select2.foc us()
}
else if(document.form1.text3.va lue=="")
{
alert("Please enter the source type pair number");
document.form1.text3.focus ()
}
else if(isNaN(document.form1.te xt3.value) )
{
alert("please enter Numerical Source Type pair value")
document.form1.text3.value =""
document.form1.text3.focus ()
}
else if(document.form1.select3. value=="")
{
alert("Please select the port.")
document.form1.select3.foc us()
}
//this is check PBX if it is then, call pbx_validate(a,b) function
else if(document.form1.select3. value=="PB X")
{
pbx_validate(document.form 1.text4.va lue,docume nt.form1.s elect4.val ue,documen t.form1.te xt5.value) ;
}
//this is check PBX if it is then, call mdf_validate(a,b) function
else if(document.form1.select3. value=="MD F")
{
mdf_validate(document.form 1.select4. value,docu ment.form1 .text5.val ue);
}
}
//This function will called when selection is Leased Line
function radio2_onclick()
{
document.form1.Label4.styl e.visibili ty="visibl e"
document.form1.text6.style .visibilit y="visible "
}
//This function will called when selection is Telephone
function radio1_onclick()
{
document.form1.Label4.styl e.visibili ty="hidden "
document.form1.text6.style .visibilit y="hidden"
document.form1.Label5.styl e.visibili ty="hidden "
document.form1.text7.style .visibilit y="hidden"
}
//-->
</SCRIPT>
</HEAD>
<BODY bgColor=white LANGUAGE=javascript onload="return window_onload()" background="file://\\Ws004 2\c\juzzfo ne\bg3.jpg " aLink =darksalmon vLink=darkred link=brown>
<FORM action="http:\\ws0042\new\indexupdate.asp" method=post id=form1 name=txtForm>
<P align=center><STRONG
style="COLOR: darkblue; FONT-FAMILY: serif; FONT-SIZE: x-large" title="DoT Adminstration">
&n bsp; BSNL Administration</STRONG></P >
<P>
<HR style="LEFT: 10px; TOP: 64px" id=HR1 color=brown>
<P></P>
<P> </P>
<TABLE align=center border=0 cellPadding=2 cellSpacing=1
style="HEIGHT: 420px; LEFT: 45px; TOP: 146px; WIDTH: 571px" width="75%" height="120%">
<TBODY align=left>
<TR>
<TD align=left><STRONG>Circuit Type</STRONG></TD>
<TD><SELECT id=select1 name=cirType
style="HEIGHT: 21px; WIDTH: 110px" LANGUAGE=javascript onchange="return select1_onchange()">
<OPTION value="" selected
>Select one</OPTION> <OPTION
value=Telephone>Telephone< /OPTION><O PTION value ="LeasedLine"
>Leased
Line</OPTION></SELECT>&nbs p; &n bsp; &nbs p; &n bsp; &nbs p;
<INPUT name=teleSource type=radio value=Telephone id=radio1 checked LANGUAGE=javascript onclick="return radio1_onclick()">
<INPUT id=Label6 name=label6 readOnly size=15 style="BACKGROUND-COLOR: #f5f5dc; BACKGROUND-IMAGE: url(file://\\Ws0042\c\juzz fone\bg3.j pg); BORDER-BOTTOM-STYLE: none; BORDER-LEFT-STYLE: none; BORDER-RIGHT-STYLE: none; BORDER-TOP-STYLE: none; FLOAT: none; FONT-FAMILY: Times New Roman; FONT-SIZE: small; FONT-VARIANT: normal; FONT-WEIGHT: bold; HEIGHT: 22px; WIDTH: 72px" tabIndex
=12 value=Telephone><STRONG>&n bsp;
<INPUT name=teleSource type=radio value=ISDN id=radio2 LANGUAGE=javascript onclick="return radio2_onclick()">
<INPUT id=Label7 name=label7 readOnly size=15
style="BACKGROUND-COLOR: #f5f5dc; BACKGROUND-IMAGE: url(file://\\Ws0042\c\juzz fone\bg3.j pg); BORDER-BOTTOM-STYLE: none; BORDER-LEFT-STYLE: none; BORDER-RIGHT-STYLE: none; BORDER-TOP-STYLE: none; FLOAT: none; FONT-FAMILY: Times New Roman; FONT-SIZE: small; FONT-VARIANT: normal; FONT-WEIGHT: bold; HEIGHT: 22px; WIDTH: 72px" tabIndex
=12 value=ISDN></STRONG></TD>< /TR>
<TR>
<TD align=left><STRONG >Name of
Link</STRONG></TD>
<TD><INPUT id=text1 name=nameLink
style="HEIGHT: 24px; WIDTH: 155px" tabIndex=1>
<INPUT id=Label8 name=label8 readOnly size=15
style="BACKGROUND-COLOR: #f5f5dc; BACKGROUND-IMAGE: url(file://\\Ws0042\c\juzz fone\bg3.j pg); BORDER-BOTTOM-STYLE: none; BORDER-LEFT-STYLE: none; BORDER-RIGHT-STYLE: none; BORDER-TOP-STYLE: none; FLOAT: none; FONT-FAMILY: Times New Roman; FONT-SIZE: small; FONT-VARIANT: normal; FONT-WEIGHT: bold; HEIGHT: 22px; WIDTH: 98px" tabIndex
=12 value=PhoneNumber> &n bsp;<STRON G><INPUT id=text8 name=phoneNo
style="HEIGHT: 23px; WIDTH: 99px" maxLength=15></STRONG></TD ></TR>
<TR>
<TD align=left><STRONG>Descrip tion </STRONG>< /TD>
<TD><TEXTAREA id=text2 name=linkDesc style="HEIGHT: 74px; WIDTH: 233px" tabIndex=2></TEXTAREA></TD ></TR>
<TR>
<TD align=left><STRONG>Source Type</STRONG></TD>
<TD><SELECT id=select2 name=sourceType style="HEIGHT: 27px; WIDTH: 110px" tabIndex=3>
<OPTION
selected value="">Select One</OPTION><OPTION value=DoT>DoT</OPTION><OPT ION
value=STM>STM</OPTION></SE LECT></TD> </TR>
<TR>
<TD align=left><STRONG>Source Type Pair
Number </STRONG ></TD>
<TD><INPUT id=text3 name=stpairNumber1
style="HEIGHT: 23px; WIDTH: 45px" alt="" maxLength=3
tabIndex=4
> & nbsp;  ; &nb sp; & nbsp;  ; &nb sp; & nbsp;  ; &nb sp; & nbsp;  ;
<INPUT
id=Label4 name=label4 readOnly size=15
style="BACKGROUND-COLOR: #f5f5dc; BACKGROUND-IMAGE: url(file://\\Ws0042\c\juzz fone\bg3.j pg); BORDER-BOTTOM-STYLE: none; BORDER-LEFT-STYLE: none; BORDER-RIGHT-STYLE: none; BORDER-TOP-STYLE: none; FLOAT: none; FONT-FAMILY: Times New Roman; FONT-SIZE: small; FONT-VARIANT: normal; FONT-WEIGHT: bold; HEIGHT: 26px;
WIDTH: 120px" value
="Pair Number2"
tabIndex=12> &n bsp;
<INPUT alt="" id=text6 maxLength=3
name=stpairNumber2 style="HEIGHT: 23px; WIDTH: 45px"
tabIndex=5></TD></TR>
<TR>
<TD align=left><STRONG>Port</S TRONG></TD >
<TD><SELECT id=select3 name=portChoice style="HEIGHT: 23px; WIDTH: 110px" LANGUAGE=javascript onchange="return select3_onchange()"
tabIndex=6>
<OPTION selected value="">Select One</OPTION><OPTION
value=MDF>MDF</OPTION><OPT ION value=PBX>PBX</OPTION></SE LECT>  ; &nb sp; & nbsp;  ; &nb sp; <INPUT
id=Label1 name=label1 readOnly size=15
style="BACKGROUND-COLOR: #f5f5dc; BACKGROUND-IMAGE: url(file://\\Ws0042\c\juzz fone\bg3.j pg); BORDER-BOTTOM-STYLE: none; BORDER-LEFT-STYLE: none; BORDER-RIGHT-STYLE: none; BORDER-TOP-STYLE: none; FLOAT: none; FONT-FAMILY: Times New Roman; FONT-SIZE: small; FONT-VARIANT: normal; FONT-WEIGHT: bold; HEIGHT: 25px;
WIDTH: 146px" value
="PBX Pair Number" tabIndex=13>
<INPUT id=text4 maxLength=3 name=pbxPairno
style="HEIGHT: 22px; WIDTH: 45px" tabIndex=7
></TD></TR>
<TR>
<TD align=left style="FONT-STYLE: oblique"><INPUT
id=Label2 name=label2 readOnly size=15
style="BACKGROUND-COLOR: #f5f5dc; BACKGROUND-IMAGE: url(file://\\Ws0042\c\juzz fone\bg3.j pg); BORDER-BOTTOM-STYLE: none; BORDER-LEFT-STYLE: none; BORDER-RIGHT-STYLE: none; BORDER-TOP-STYLE: none; FLOAT: none; FONT-FAMILY: Times New Roman; FONT-SIZE: small; FONT-VARIANT: normal; FONT-WEIGHT: bold; HEIGHT: 25px; WIDTH: 146px" value
="MDF Selection" tabIndex=14></TD>
<TD><SELECT id=select4 name=mdfChoice
style="HEIGHT: 23px; VISIBILITY: visible; WIDTH: 110px" tabIndex=8
> <OPTION
selected value="">Select One</OPTION><OPTION
value=Basement>Basement</O PTION><OPT ION value=GroundFloor>Ground
Floor</OPTION><OPTION value=DataCenter>DataCente r</OPTION> <OPTION
value=FirstFloor>First Floor</OPTION><OPTION value=SecondFloor>Second
Floor</OPTION><OPTION value=ThirdFloor>Third Floor</OPTION></SELECT></T D></TR>
<TR>
<TD align=left vAlign=top><INPUT id=Label3 name=label3 readOnly
size=15
style="BACKGROUND-COLOR: #f5f5dc; BACKGROUND-IMAGE: url(file://\\Ws0042\c\juzz fone\bg3.j pg); BORDER-BOTTOM-STYLE: none; BORDER-LEFT-STYLE: none; BORDER-RIGHT-STYLE: none; BORDER-TOP-STYLE: none; FLOAT: none; FONT-FAMILY: Times New Roman; FONT-SIZE: small; FONT-VARIANT: normal; FONT-WEIGHT: bold; HEIGHT: 25px;
WIDTH: 146px" value
="MDF Pair Number" tabIndex=15></TD>
<TD style="VERTICAL-ALIGN: top">
<P><INPUT id=text5
name=mdfPairno1 style="HEIGHT: 25px; LEFT: 1px; TOP: 41px;
VISIBILITY: visible; WIDTH: 45px"
alt="" maxLength=3 tabIndex=9> &nb sp; & nbsp;  ; &nb sp; & nbsp;  ; &nb sp; & nbsp;  ; &nb sp; & nbsp;  ; &nb sp;
<INPUT
id=Label5 name=label4 readOnly size=15
style="BACKGROUND-COLOR: #f5f5dc; BACKGROUND-IMAGE: url(file://\\Ws0042\c\juzz fone\bg3.j pg); BORDER-BOTTOM-STYLE: none; BORDER-LEFT-STYLE: none; BORDER-RIGHT-STYLE: none; BORDER-TOP-STYLE: none; FLOAT: none; FONT-FAMILY: Times New Roman; FONT-SIZE: small; FONT-VARIANT: normal; FONT-WEIGHT: bold; HEIGHT: 26px;
WIDTH: 120px" tabIndex
=12 value="Pair Number2"
> & nbsp;  ; &nb sp; <INPUT
alt="" id=text7 maxLength=3 name=mdfpairno2
style="HEIGHT: 23px; WIDTH: 45px"
tabIndex=5></P></TD></TR>< /TBODY></T ABLE>
&n bsp; &nbs p; &n bsp; &nbs p; &n bsp; &nbs p; &n bsp; &nbs p; &n bsp; &nbs p; &n bsp; &nbs p; &n bsp; &nbs p; &n bsp; &nbs p; &n bsp; &nbs p; &n bsp; &nbs p; &n bsp; &nbs p; &n bsp;
<INPUT id=button1 name=formSubmit style="HEIGHT: 38px; LEFT: 10px; TOP: 525px; WIDTH: 72px" type=submit value=Enter LANGUAGE=javascript onfocus="return button1_onfocus()" tabIndex=10> &n bsp; &nbs p; &n bsp;
<INPUT id=reset1 name=reset1 style="HEIGHT: 38px; WIDTH: 72px" type=reset value=Reset tabIndex=11>
<br>
<br>
<H4>
<a href="http://ws0042/new/list_telephonelines.asp"><STRONG>View Telephone& nbsp;Line
</a>
<br><br>
<A href="http://ws0042/new/list_leasedlines.asp">View Leased&n bsp;Line</ A></STRONG ></H4>
<H4><STRONG> </H4>
</FORM></STRONG>
</BODY>
</HTML>
with cheers.
Instead of radio button we use selection list and hide the
input text and enable whenever we want.
I think this will useful, try this,
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<TITLE>BSNL Administration</TITLE>
<SCRIPT ID=clientEventHandlersJS LANGUAGE=javascript>
<!--
function pbx_validate(pbxPair,mdfSe
{
//Checks PBX pair no empty
if(pbxPair=="")
{
alert("Please enter the PBX pair number")
document.form1.text4.focus
}
//Checks PBX pair no is a number
else if(isNaN(pbxPair))
{
alert("Please enter numerical PBX pair value")
document.form1.text4.value
document.form1.text4.focus
}
//call mdf_validate(mdfSel,mdfPai
else
{
mdf_validate(mdfSel,mdfPai
}
}
function mdf_validate(mdfSel,mdfPai
{
//checks mdfSel Null value
if(mdfSel=="")
{
alert("Please select MDF selction");
document.form1.select4.foc
}
//checks mdfPair Null value
else if(mdfPair=="")
{
alert("Please enter the MDF pair number");
document.form1.text5.value
document.form1.text5.focus
}
//checks mdfPair Number Only value
else if(isNaN(mdfPair))
{
alert("Please enter numerical MDF pair value")
document.form1.text5.value
document.form1.text5.focus
}
//checks Telephone
else if(document.form1.select1.
{
// calls the phone_validate function if selection is Telephone
phone_validate()
}
//checks Leased Line
else if(document.form1.select1.
{
//calls leasedline_validate function if selection is Leases Line
leasedline_validate()
}
}
function phone_validate()
{
//Checks the phone number empty or not
if(document.form1.text8.va
{
alert("Please enter Phone Number");
document.form1.text8.focus
}
//Checks the Phone numbers numberical value
else if(isNaN(document.form1.te
{
alert("Please enter numerical Phone NUmber")
document.form1.text8.value
document.form1.text8.focus
}
}
function leasedline_validate()
{
//Checks the Source type Pair Number2 Whether empty or not
if(document.form1.text6.va
{
alert("Please enter Source Type Pair Number2");
document.form1.text6.focus
}
//Checks numerical value of Pair Number2
else if(isNaN(document.form1.te
{
alert("Please enter numerical Source Type Pair Number2")
document.form1.text6.value
document.form1.text6.focus
}
}
//when window first loads this function called
function window_onload()
{
{
document.form1.Label1.styl
document.form1.text4.style
document.form1.Label2.styl
document.form1.select4.sty
document.form1.Label3.styl
document.form1.text5.style
document.form1.Label4.styl
document.form1.text6.style
document.form1.Label5.styl
document.form1.text7.style
document.form1.Label6.styl
document.form1.radio1.styl
document.form1.Label7.styl
document.form1.radio2.styl
document.form1.Label8.styl
document.form1.text8.style
}
}
function select1_onchange()
{
var cirtype = document.form1.select1.val
if(cirtype == "LeasedLine")
{ //if circuit type is leased line then two souce type pair number is necessary
if(document.form1.select3.
{
document.form1.Label5.styl
document.form1.text7.style
}
document.form1.Label6.styl
document.form1.radio1.styl
document.form1.Label7.styl
document.form1.radio2.styl
document.form1.Label8.styl
document.form1.text8.style
document.form1.Label4.styl
document.form1.text6.style
}
else if(cirtype == "Telephone")
{
document.form1.Label6.styl
document.form1.radio1.styl
document.form1.Label7.styl
document.form1.radio2.styl
document.form1.Label8.styl
document.form1.text8.style
document.form1.Label4.styl
document.form1.text6.style
document.form1.Label5.styl
document.form1.text7.style
}
else
{
document.form1.Label6.styl
document.form1.radio1.styl
document.form1.Label7.styl
document.form1.radio2.styl
document.form1.Label8.styl
document.form1.text8.style
document.form1.Label4.styl
document.form1.text6.style
document.form1.Label5.styl
document.form1.text7.style
}
}
//This whole function is to hide and make visible the mdf and pbx selection
function select3_onchange()
{
var port = document.form1.select3.val
if(port == "MDF")
{
if(document.form1.select1.
{
document.form1.Label5.styl
document.form1.text7.style
}
if( document.form1.teleSource[
{
document.form1.Label5.styl
document.form1.text7.style
}
document.form1.Label1.styl
document.form1.text4.style
document.form1.Label2.styl
document.form1.select4.sty
document.form1.Label3.styl
document.form1.text5.style
}
else if(port == "PBX")
{
if(document.form1.select1.
{
document.form1.Label5.styl
document.form1.text7.style
}
if( document.form1.teleSource[
{
document.form1.Label5.styl
document.form1.text7.style
}
document.form1.Label1.styl
document.form1.text4.style
document.form1.Label2.styl
document.form1.select4.sty
document.form1.Label3.styl
document.form1.text5.style
}
else if(port=="")
{
document.form1.Label1.styl
document.form1.text4.style
document.form1.Label2.styl
document.form1.select4.sty
document.form1.Label3.styl
document.form1.text5.style
document.form1.Label5.styl
document.form1.text7.style
}
}
function button1_onfocus()
{
if(document.form1.select1.
{
alert("Please select the Circuit Type");
document.form1.select1.foc
}
else if(document.form1.text1.va
{
alert("Please enter the link name");
document.form1.text1.focus
}
else if(document.form1.text2.va
{
alert("Please enter the description");
document.form1.text2.focus
}
else if(document.form1.select2.
{
alert("Please select the source type");
document.form1.select2.foc
}
else if(document.form1.text3.va
{
alert("Please enter the source type pair number");
document.form1.text3.focus
}
else if(isNaN(document.form1.te
{
alert("please enter Numerical Source Type pair value")
document.form1.text3.value
document.form1.text3.focus
}
else if(document.form1.select3.
{
alert("Please select the port.")
document.form1.select3.foc
}
//this is check PBX if it is then, call pbx_validate(a,b) function
else if(document.form1.select3.
{
pbx_validate(document.form
}
//this is check PBX if it is then, call mdf_validate(a,b) function
else if(document.form1.select3.
{
mdf_validate(document.form
}
}
//This function will called when selection is Leased Line
function radio2_onclick()
{
document.form1.Label4.styl
document.form1.text6.style
}
//This function will called when selection is Telephone
function radio1_onclick()
{
document.form1.Label4.styl
document.form1.text6.style
document.form1.Label5.styl
document.form1.text7.style
}
//-->
</SCRIPT>
</HEAD>
<BODY bgColor=white LANGUAGE=javascript onload="return window_onload()" background="file://\\Ws004
<FORM action="http:\\ws0042\new\indexupdate.asp" method=post id=form1 name=txtForm>
<P align=center><STRONG
style="COLOR: darkblue; FONT-FAMILY: serif; FONT-SIZE: x-large" title="DoT Adminstration">
&n
<P>
<HR style="LEFT: 10px; TOP: 64px" id=HR1 color=brown>
<P></P>
<P> </P>
<TABLE align=center border=0 cellPadding=2 cellSpacing=1
style="HEIGHT: 420px; LEFT: 45px; TOP: 146px; WIDTH: 571px" width="75%" height="120%">
<TBODY align=left>
<TR>
<TD align=left><STRONG>Circuit
<TD><SELECT id=select1 name=cirType
style="HEIGHT: 21px; WIDTH: 110px" LANGUAGE=javascript onchange="return select1_onchange()">
<OPTION value="" selected
>Select one</OPTION> <OPTION
value=Telephone>Telephone<
>Leased
Line</OPTION></SELECT>&nbs
<INPUT name=teleSource type=radio value=Telephone id=radio1 checked LANGUAGE=javascript onclick="return radio1_onclick()">
<INPUT id=Label6 name=label6 readOnly size=15 style="BACKGROUND-COLOR: #f5f5dc; BACKGROUND-IMAGE: url(file://\\Ws0042\c\juzz
=12 value=Telephone><STRONG>&n
<INPUT name=teleSource type=radio value=ISDN id=radio2 LANGUAGE=javascript onclick="return radio2_onclick()">
<INPUT id=Label7 name=label7 readOnly size=15
style="BACKGROUND-COLOR: #f5f5dc; BACKGROUND-IMAGE: url(file://\\Ws0042\c\juzz
=12 value=ISDN></STRONG></TD><
<TR>
<TD align=left><STRONG >Name of
Link</STRONG></TD>
<TD><INPUT id=text1 name=nameLink
style="HEIGHT: 24px; WIDTH: 155px" tabIndex=1>
<INPUT id=Label8 name=label8 readOnly size=15
style="BACKGROUND-COLOR: #f5f5dc; BACKGROUND-IMAGE: url(file://\\Ws0042\c\juzz
=12 value=PhoneNumber> &n
style="HEIGHT: 23px; WIDTH: 99px" maxLength=15></STRONG></TD
<TR>
<TD align=left><STRONG>Descrip
<TD><TEXTAREA id=text2 name=linkDesc style="HEIGHT: 74px; WIDTH: 233px" tabIndex=2></TEXTAREA></TD
<TR>
<TD align=left><STRONG>Source Type</STRONG></TD>
<TD><SELECT id=select2 name=sourceType style="HEIGHT: 27px; WIDTH: 110px" tabIndex=3>
<OPTION
selected value="">Select One</OPTION><OPTION value=DoT>DoT</OPTION><OPT
value=STM>STM</OPTION></SE
<TR>
<TD align=left><STRONG>Source Type Pair
Number </STRONG
<TD><INPUT id=text3 name=stpairNumber1
style="HEIGHT: 23px; WIDTH: 45px" alt="" maxLength=3
tabIndex=4
> &
<INPUT
id=Label4 name=label4 readOnly size=15
style="BACKGROUND-COLOR: #f5f5dc; BACKGROUND-IMAGE: url(file://\\Ws0042\c\juzz
WIDTH: 120px" value
="Pair Number2"
tabIndex=12> &n
<INPUT alt="" id=text6 maxLength=3
name=stpairNumber2 style="HEIGHT: 23px; WIDTH: 45px"
tabIndex=5></TD></TR>
<TR>
<TD align=left><STRONG>Port</S
<TD><SELECT id=select3 name=portChoice style="HEIGHT: 23px; WIDTH: 110px" LANGUAGE=javascript onchange="return select3_onchange()"
tabIndex=6>
<OPTION selected value="">Select One</OPTION><OPTION
value=MDF>MDF</OPTION><OPT
id=Label1 name=label1 readOnly size=15
style="BACKGROUND-COLOR: #f5f5dc; BACKGROUND-IMAGE: url(file://\\Ws0042\c\juzz
WIDTH: 146px" value
="PBX Pair Number" tabIndex=13>
<INPUT id=text4 maxLength=3 name=pbxPairno
style="HEIGHT: 22px; WIDTH: 45px" tabIndex=7
></TD></TR>
<TR>
<TD align=left style="FONT-STYLE: oblique"><INPUT
id=Label2 name=label2 readOnly size=15
style="BACKGROUND-COLOR: #f5f5dc; BACKGROUND-IMAGE: url(file://\\Ws0042\c\juzz
="MDF Selection" tabIndex=14></TD>
<TD><SELECT id=select4 name=mdfChoice
style="HEIGHT: 23px; VISIBILITY: visible; WIDTH: 110px" tabIndex=8
> <OPTION
selected value="">Select One</OPTION><OPTION
value=Basement>Basement</O
Floor</OPTION><OPTION value=DataCenter>DataCente
value=FirstFloor>First Floor</OPTION><OPTION value=SecondFloor>Second
Floor</OPTION><OPTION value=ThirdFloor>Third Floor</OPTION></SELECT></T
<TR>
<TD align=left vAlign=top><INPUT id=Label3 name=label3 readOnly
size=15
style="BACKGROUND-COLOR: #f5f5dc; BACKGROUND-IMAGE: url(file://\\Ws0042\c\juzz
WIDTH: 146px" value
="MDF Pair Number" tabIndex=15></TD>
<TD style="VERTICAL-ALIGN: top">
<P><INPUT id=text5
name=mdfPairno1 style="HEIGHT: 25px; LEFT: 1px; TOP: 41px;
VISIBILITY: visible; WIDTH: 45px"
alt="" maxLength=3 tabIndex=9> &nb
<INPUT
id=Label5 name=label4 readOnly size=15
style="BACKGROUND-COLOR: #f5f5dc; BACKGROUND-IMAGE: url(file://\\Ws0042\c\juzz
WIDTH: 120px" tabIndex
=12 value="Pair Number2"
> &
alt="" id=text7 maxLength=3 name=mdfpairno2
style="HEIGHT: 23px; WIDTH: 45px"
tabIndex=5></P></TD></TR><
&n
<INPUT id=button1 name=formSubmit style="HEIGHT: 38px; LEFT: 10px; TOP: 525px; WIDTH: 72px" type=submit value=Enter LANGUAGE=javascript onfocus="return button1_onfocus()" tabIndex=10> &n
<INPUT id=reset1 name=reset1 style="HEIGHT: 38px; WIDTH: 72px" type=reset value=Reset tabIndex=11>
<br>
<br>
<H4>
<a href="http://ws0042/new/list_telephonelines.asp"><STRONG>View
</a>
<br><br>
<A href="http://ws0042/new/list_leasedlines.asp">View Leased&n
<H4><STRONG> </H4>
</FORM></STRONG>
</BODY>
</HTML>
with cheers.
You can't do a show/hide on form elements in Netscape (at least you can't in 4+ versions, not sure about 6). They'll always show through. You can hide the ENTIRE form -- but then it's not scriptable, since when it's hidden, it's REALLY hidden.
Also, they'll be on a DIFFERENT form, so you'd need to carry any necessary fields to that form.
You also can't dynamically move the elements -- so they'll have to be set under the existing ones, and they won't move anything out of the way, and will either leave a hole on the page or have to be scrolled to see them.
So this isn't going to work in Netscape 4+, no matter what you do to it. If you need Netscape support, rethink it completely.
Why not just have it go to another whole page? Much easier, much more intuitive for the user, and works for everything -- even old/strange browsers.
Also, they'll be on a DIFFERENT form, so you'd need to carry any necessary fields to that form.
You also can't dynamically move the elements -- so they'll have to be set under the existing ones, and they won't move anything out of the way, and will either leave a hole on the page or have to be scrolled to see them.
So this isn't going to work in Netscape 4+, no matter what you do to it. If you need Netscape support, rethink it completely.
Why not just have it go to another whole page? Much easier, much more intuitive for the user, and works for everything -- even old/strange browsers.
However you can show the fields as a new form and gather all the fom bits to the hidden form that is the one that has the submit button. A LOT of things can be scripted. A LOT more than WebWoman wants- so don't pay any attention to "no matter what you do" I wish WW would be a little more positive :(
And BTW - Netscape 6 IS a lot more scriptable so you should get rid of the + from NS4+
Michel
And BTW - Netscape 6 IS a lot more scriptable so you should get rid of the + from NS4+
Michel
You have pended this question for deletion, however, the deletion did not complete.
Comment here please as to why you want to delete this rather than award points. You asked for help in February of this year, much help followed and now you process a deletion request without any words to the experts who stepped in to help you.
Listening further.
Moondancer
Community Support Moderator @ Experts Exchange
Comment here please as to why you want to delete this rather than award points. You asked for help in February of this year, much help followed and now you process a deletion request without any words to the experts who stepped in to help you.
Listening further.
Moondancer
Community Support Moderator @ Experts Exchange
Please return and update/finalize all your open questions. If you need our help, let us know. If the questions remain unresolved next week, we will need to take the actions to close them.
Your cooperation in managing your questions at this site is not only appreciated but necessary.
Topic Area URL Date
Community Support (General) https://www.experts-exchange.com/jsp/qShow.jsp?ta=commspt&qid=20252119 01/06/02
JavaScript https://www.experts-exchange.com/jsp/qShow.jsp?ta=javascript&qid=20069836 02/02/01
JavaScript https://www.experts-exchange.com/jsp/qShow.jsp?ta=javascript&qid=20076966 02/13/01
JavaScript https://www.experts-exchange.com/jsp/qShow.jsp?ta=javascript&qid=20227582 11/06/01
Perl https://www.experts-exchange.com/jsp/qShow.jsp?ta=perl&qid=11326038 09/20/00
Perl https://www.experts-exchange.com/jsp/qShow.jsp?ta=perl&qid=20182722 09/13/01
Perl https://www.experts-exchange.com/jsp/qShow.jsp?ta=perl&qid=20182782 09/14/01
Perl https://www.experts-exchange.com/jsp/qShow.jsp?ta=perl&qid=20247168 12/18/01
Perl https://www.experts-exchange.com/jsp/qShow.jsp?ta=perl&qid=20247820 12/19/01
Perl https://www.experts-exchange.com/jsp/qShow.jsp?ta=perl&qid=20253473 01/10/02
Moondancer
Community Support Moderator @ Experts Exchange
Your cooperation in managing your questions at this site is not only appreciated but necessary.
Topic Area URL Date
Community Support (General) https://www.experts-exchange.com/jsp/qShow.jsp?ta=commspt&qid=20252119 01/06/02
JavaScript https://www.experts-exchange.com/jsp/qShow.jsp?ta=javascript&qid=20069836 02/02/01
JavaScript https://www.experts-exchange.com/jsp/qShow.jsp?ta=javascript&qid=20076966 02/13/01
JavaScript https://www.experts-exchange.com/jsp/qShow.jsp?ta=javascript&qid=20227582 11/06/01
Perl https://www.experts-exchange.com/jsp/qShow.jsp?ta=perl&qid=11326038 09/20/00
Perl https://www.experts-exchange.com/jsp/qShow.jsp?ta=perl&qid=20182722 09/13/01
Perl https://www.experts-exchange.com/jsp/qShow.jsp?ta=perl&qid=20182782 09/14/01
Perl https://www.experts-exchange.com/jsp/qShow.jsp?ta=perl&qid=20247168 12/18/01
Perl https://www.experts-exchange.com/jsp/qShow.jsp?ta=perl&qid=20247820 12/19/01
Perl https://www.experts-exchange.com/jsp/qShow.jsp?ta=perl&qid=20253473 01/10/02
Moondancer
Community Support Moderator @ Experts Exchange
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
<head>
<title>Center.com</title>
<style type="text/css">
<!--
.texttitle {font-family: Arial, Helvetica, sans-serif; font-size: 11pt; font-weight: bold; color: #993333}
.pagetext {font-family: Arial, Helvetica, sans-serif; font-size: 9pt; color: #333333}
.boldtext {font-family: Arial, Helvetica, sans-serif; font-size: 9pt; font-weight: bold; color: #993333}
-->
</style>
</head>
<body bgcolor="#FFFFFF" background="/images/com/uu
<table width="92%" border="0" cellspacing="0" cellpadding="0" align="center" bordercolor="#CCCCCC" height="100%">
<tr>
<td bgcolor="#F9F9F9" height="2">
<table width="100%" border="0" cellspacing="0" cellpadding="0" bordercolor="#CCCCCC">
<tr bgcolor="#CCCCCC">
<td><img src="/images/com/transpare
</tr>
</table>
</td>
</tr>
<tr bgcolor="#DFDFDF">
<td width="31" height="19">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="3%"><img src="/images/com/uuc_logo_
<td width="97%" valign="bottom">
<div align="right"><span class="texttitle"></span><
<span class="texttitle"><i><font
</tr>
</table>
</td>
</tr>
<tr bgcolor="#F9F9F9" valign="top">
<td>
<table width="100%" border="1" cellspacing="0" cellpadding="0" bordercolor="#CCCCCC" height="100%">
<tr valign="top">
<td height="217">
<table width="85%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td>
<div align="left"> </div>
</td>
</tr>
<tr>
<td><font size="3" class="texttitle">
Add/Renew License for bpa.4meweb.com
</font></td>
</tr>
<tr>
<td bgcolor="#999999"><img src="/images/com/transpare
</tr>
<tr>
<td class="pagetext"><span class="pagetext">
<table width="100%" border="0" cellpadding="5">
<tr>
<td><div align="center"><font face="Arial, Helvetica, sans-serif" size=3><!-- --></font></div></td>
</tr>
<tr>
<td height="86">
<blockquote>
<div align="center">
<p><font face="Arial, Helvetica, sans-serif" size=2>
<form name="frmRenew" method="post" action="/cgi/com/UU_purcha
<input type="hidden" name="username" value="bpa">
<input type="hidden" name="domain_name" value="4meweb.com">
<input type="hidden" name="user_no" value="832725">
<input type="hidden" name="Session_ID" value="saQjky9l8B.BA0.2583
<input type="hidden" name="name" value="bpa">
<input type="hidden" name="user_type" value="M">
<input type="hidden" name="licenses" value="5">
<table border=0>
<tr><th>Tool</th><th>Licen
<tr><td> One </td><td align="center"><font color=""> 5 </font></td><td><font color=""> 03-Mar-2001 </font></td></tr>
<tr><td> Two </td><td align="center"><font color=""> 5 </font></td><td><font color=""> 03-Mar-2001 </font></td></tr>
<tr><td> Three </td><td align="center"><font color=""> 5 </font></td><td><font color=""> 03-Mar-2001
</font></td></tr>
<tr><td> Four </td><td align="center"><font color=""> 5 </font></td><td><font color=""> 03-Mar-2001
</font></td></tr>
<tr><td> Five </td><td align="center"><font color=""> 5 </font></td><td><font color=""> 03-Mar-2001
</font></td></tr>
<tr><td> Six </td><td align="center"><font color=""> 5 </font></td><td><font color=""> 03-Mar-2001 </font></td></tr>
<tr><td> Seven </td><td align="center"><font color=""> 5 </font></td><td><font color=""> 03-Mar-2001
</font></td></tr>
<tr><td> Eight </td><td align="center"><font color=""> 5 </font></td><td><font color=""> 03-Mar-2001
</font></td></tr>
<tr><td> Nine </td><td align="center"><font color=""> 5 </font></td><td><font color=""> 03-Mar-2001
</font></td></tr>
</table>
<br><font size="2">Select any one. <br> <input type="radio" name="add" value="" checked=true onclick="hidrenew.style.vi
type="radio" name="add" value="" onclick="hidrenew.style.vi
for help.</font>
<br>
<div style="visibility:hidden;b
<table width="85%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<div align="right"><font face="Arial, Helvetica, sans-serif" size="2">Extra Licenses: </font></div>
</td>
<td>
<input type="text" name="license" value="" maxlength="3" size="6">
</td>
</tr>
<tr>
<td> <div align="right"><font face="Arial, Helvetica, sans-serif" size="2">Extra
period : </font></div> </td>
<td> <input type="text" name="period" value=""> </td>
</tr>
<tr>
<td>
<div align="right"><font face="Arial, Helvetica, sans-serif" size="2">From
Date : </font></div> </td>
<td>
<select name="startDate">
<option selected>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
<option>6</option>
<option>7</option>
<option>8</option>
<option>9</option>
<option>10</option>
<option>11</option>
<option>12</option>
<option>13</option>
<option>14</option>
<option>15</option>
<option>16</option>
<option>17</option>
<option>18</option>
<option>19</option>
<option>20</option>
<option>21</option>
<option>22</option>
<option>23</option>
<option>24</option>
<option>25</option>
<option>26</option>
<option>27</option>
<option>28</option>
<option>29</option>
<option>30</option>
<option>31</option>
</select>
<select name=monthSelect>
<option selected >Jan</option>
<option>Feb</option>
<option >Mar</option>
<option >Apr</option>
<option >May</option>
<option >Jun</option>
<option >Jul</option>
<option >Aug</option>
<option >Sep</option>
<option >Oct</option>
<option >Nov</option>
<option >Dec</option>
</select>
<select name=yearSelect>
<option>2000</option>
<option selected>2001</option>
<option>2002</option>
<option>2003</option>
<option>2004</option>
<option>2005</option>
<option>2006</option>
<option>2007</option>
<option>2008</option>
<option>2009</option>
<option>2010</option>
</select>
</td>
</tr>
<tr>
<td>
<div align="right"><font face="Arial, Helvetica, sans-serif" size="2">Expiry
Date : </font></div>
</td>
<td>
<input type="text" name="newexpdate" value="03-Mar-2001" readonly>
</td>
</tr>
</div>
</table>
<table>
<tr>
<td>
<div align="right">
<input type="submit" name="btnAddSpace" value=" Add/Renew" onClick="frmRenew.submit()
</div>
</td>
<td>
<input type="button" name="btnCancel" value=" Cancel " onClick="javascript:window
</td>
</tr>
</table>
</form>
</body>
</html>