Hi guys,
I have got a prob of javascript form validation which just doesnt work
with my ASP code. Can any one help me out please.
Here is the code:
///////////////////////////////////////////////
<%
ntlogon = (Request.Server Variables("LOGO N_USER"))
remotehost = (Request.Server Variables("REMO TE_HOST"))
%>
<body>
<form name="form1" method="post" action="confadd idea.asp"
onSubmit="retur n validate();">
<font face=Verdana size=2>
<i>Please note all fields marked with * are mandatory.</i>
<i>Click on the <img src="iicon.gif" alt="" width=16px height=16px> icon
for help with each field</i>
<BR><BR>
<table>
<TR>
<TD style="width=26 5px"> <font face=Verdana size=2>
* First Name :
<BR>
<input name="f_name" size=25 maxlenght=50 class="myform">
<img src="clear.jpg" border=0 width=23 height=20></a><br>
<BR>
* Surname Name :
<BR>
<input name="s_name" size=25 maxlenght=50
class="myform" >
<img src="clear.jpg" border=0 width=23
height=20></a><br>
<BR>
* Email Address:
<BR>
<input name="e_address " size=25 maxlenght=50
class="myform" >
<a href="#" onmouseover="do Tooltip(event,0 )"
onmouseout="hid eTip()">
<img src="iicon.gif" border=0 width=16px
height=16px></a><br><BR>
* Telephone Number
<BR>
<input name="tel_numbe r" size=25 maxlenght=50
class="myform" >
<a href="#" onmouseover="do Tooltip(event,1 )"
onmouseout="hid eTip()">
<img src="iicon.gif" border=0 width=16px
height=16px></a><br>
<BR>
* Employee ID :
<BR>
<input name="emp_id" size=25 maxlenght=50
class="myform" >
<a href="#" onmouseover="do Tooltip(event,2 )"
onmouseout="hid eTip()">
<img src="iicon.gif" border=0 width=16px
height=16px></a><br>
<br>
<BR>
</TD>
<TD style="width=27 5px" valign="top" align="left">
<font face=Verdana size=2>
Job title :
<BR>
<input name="job_title " style="width=23 5px"
maxlenght=50 class="myform" >
<a href="#" onmouseover="do Tooltip(event,3 )"
onmouseout="hid eTip()">
<img src="iicon.gif" border=0 width=16px
height=16px></a><br>
<BR>
</TD>
</TR>
<TD COLSPAN=2>
<font face=Verdana size=2>
* Suggestion Title :
<BR>
<input name="title_sug gestion"
style="width=52 5px" maxlenght=50 class="myform" >
<a href="#" onmouseover="do Tooltip(event,7 )"
onmouseout="hid eTip()">
<img src="iicon.gif" border=0 width=16px
height=16px></a><br>
<BR>
* Suggestion :
<BR>
<TEXTAREA name="suggestio n" rows=15
style="width=52 5px" size=250 maxlenght=250
class="myform" ></textarea>
<a href="#" onmouseover="do Tooltip(event,8 )"
onmouseout="hid eTip()">
<img src="iicon.gif" border=0 width=16px
height=16px></a><br>
<BR>
<a href="#" onmouseover="do Tooltip(event,9 )"
onmouseout="hid eTip()">
<img src="iicon.gif" border=0 width=16px
height=16px></a><br>
<BR>
</font>
<input type="hidden" name="ntlogon"
value="<%=ntlog on%>">
<input type="hidden" name="remotehos t"
value="<%=remot ehost%>">
<input type="submit" value="Submit"
onclick="this.f orm.submit();th is.disabled='tr ue';this.value= 'Please
Wait..';">
</td>
</TABLE>
</form>
<div id="tipDiv" style="position :absolute; visibility:hidd en;
z-index:100"></div>
<iframe id="tipFrame" style="position :absolute; visibility:hidd en;
z-index:90"></iframe>
</body>
</html>
////////////////////////////////////////////
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
I have got a prob of javascript form validation which just doesnt work
with my ASP code. Can any one help me out please.
Here is the code:
///////////////////////////////////////////////
<%
ntlogon = (Request.Server Variables("LOGO N_USER"))
remotehost = (Request.Server Variables("REMO TE_HOST"))
%>
<body>
<form name="form1" method="post" action="confadd idea.asp"
onSubmit="retur n validate();">
<font face=Verdana size=2>
<i>Please note all fields marked with * are mandatory.</i>
<i>Click on the <img src="iicon.gif" alt="" width=16px height=16px> icon
for help with each field</i>
<BR><BR>
<table>
<TR>
<TD style="width=26 5px"> <font face=Verdana size=2>
* First Name :
<BR>
<input name="f_name" size=25 maxlenght=50 class="myform">
<img src="clear.jpg" border=0 width=23 height=20></a><br>
<BR>
* Surname Name :
<BR>
<input name="s_name" size=25 maxlenght=50
class="myform" >
<img src="clear.jpg" border=0 width=23
height=20></a><br>
<BR>
* Email Address:
<BR>
<input name="e_address " size=25 maxlenght=50
class="myform" >
<a href="#" onmouseover="do Tooltip(event,0 )"
onmouseout="hid eTip()">
<img src="iicon.gif" border=0 width=16px
height=16px></a><br><BR>
* Telephone Number
<BR>
<input name="tel_numbe r" size=25 maxlenght=50
class="myform" >
<a href="#" onmouseover="do Tooltip(event,1 )"
onmouseout="hid eTip()">
<img src="iicon.gif" border=0 width=16px
height=16px></a><br>
<BR>
* Employee ID :
<BR>
<input name="emp_id" size=25 maxlenght=50
class="myform" >
<a href="#" onmouseover="do Tooltip(event,2 )"
onmouseout="hid eTip()">
<img src="iicon.gif" border=0 width=16px
height=16px></a><br>
<br>
<BR>
</TD>
<TD style="width=27 5px" valign="top" align="left">
<font face=Verdana size=2>
Job title :
<BR>
<input name="job_title " style="width=23 5px"
maxlenght=50 class="myform" >
<a href="#" onmouseover="do Tooltip(event,3 )"
onmouseout="hid eTip()">
<img src="iicon.gif" border=0 width=16px
height=16px></a><br>
<BR>
</TD>
</TR>
<TD COLSPAN=2>
<font face=Verdana size=2>
* Suggestion Title :
<BR>
<input name="title_sug gestion"
style="width=52 5px" maxlenght=50 class="myform" >
<a href="#" onmouseover="do Tooltip(event,7 )"
onmouseout="hid eTip()">
<img src="iicon.gif" border=0 width=16px
height=16px></a><br>
<BR>
* Suggestion :
<BR>
<TEXTAREA name="suggestio n" rows=15
style="width=52 5px" size=250 maxlenght=250
class="myform" ></textarea>
<a href="#" onmouseover="do Tooltip(event,8 )"
onmouseout="hid eTip()">
<img src="iicon.gif" border=0 width=16px
height=16px></a><br>
<BR>
<a href="#" onmouseover="do Tooltip(event,9 )"
onmouseout="hid eTip()">
<img src="iicon.gif" border=0 width=16px
height=16px></a><br>
<BR>
</font>
<input type="hidden" name="ntlogon"
value="<%=ntlog on%>">
<input type="hidden" name="remotehos t"
value="<%=remot ehost%>">
<input type="submit" value="Submit"
onclick="this.f orm.submit();th is.disabled='tr ue';this.value= 'Please
Wait..';">
</td>
</TABLE>
</form>
<div id="tipDiv" style="position :absolute; visibility:hidd en;
z-index:100"></div>
<iframe id="tipFrame" style="position :absolute; visibility:hidd en;
z-index:90"></iframe>
</body>
</html>
////////////////////////////////////////////
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Comment