reseting fields

B

Brie

Is there a way to clear out the field boxes after selecting the sign in
button? For security reasons we'd want those boxes to be cleared
without having to select the reset button only the sign in button. Is
this possible?

Thank you,
Brie

<html>

<head>

<meta http-equiv=refresh content=7200>

<style type="text/css">
..signInTable { padding-top: 5px}
</style>
</head>
<script LANGUAGE="JavaScript">
function signin(form)
{
var now=new Date();
form.timezoneOffset.value=now.getTimezoneOffset();
return ;
}
</script>
<body topmargin="0" leftmargin="0" marginwidth="0" marginheight="0"
bgcolor="#ffffff" link="#0000FF" vlink="#0000FF" alink="#0000FF"
onLoad="document.login.userid.focus();if (top != self) top.location =
location">
<form
action="http://stlhp06.fleishman.com:7651/s.../fsprod8/?cmd=login&languageCd=ENG&sessionId="
method="post" id="login" name="login" autocomplete=off
onSubmit="signin(document.login)" target="_blank">
<input type="hidden" name="httpPort" value="">
<input type="hidden" name="timezoneOffset" value="0">
<table width="100%" border="0" cellspacing="0" cellpadding="0"
height="100%">
<tr valign="top">
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<!--<tr>
<td background="/fsprod8/images/topGradientBarBgStripe.gif"
colspan="2" height="17" valign="top"><img
src="/fsprod8/images/topGradientBar.gif" width="504" height="17"></td>
</tr>
<tr valign="top">
<td background="/fsprod8/images/tallBgStripe.gif"
colspan="2" height="196"><img src="/fsprod8/images/topPSFTLogo.gif"
width="449" height="196" alt=""></td>
</tr>-->


<tr valign="top">

<td bgcolor="#FFFFFF">
<table border="0" cellspacing="0" cellpadding="0">
<tr><td colspan="4"><img src="header.gif"></td></tr>
<tr>
<td colspan="4"><img src="logo.gif"><br></td>
</tr>
<tr>
<!--** FH 10/10/01 MAH CL1451 Beg Change
**<td
class="PSEDITBOXLABEL">Language:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
**<td class="PSHYPERLINK"><a
HREF="/servlets/iclientservlet/fsprod8/?cmd=login&languageCd=ENG">English</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
**<td class="PSHYPERLINK"><a
HREF="/servlets/iclientservlet/fsprod8/?cmd=login&languageCd=ESP">Espa&ntilde;ol</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
**<td class="PSHYPERLINK"><a
HREF="/servlets/iclientservlet/fsprod8/?cmd=login&languageCd=FRA">Fran&ccedil;ais</a>&nbsp;&nbsp;</td>
** FH 10/10/01 MAH CL1451 End Change**-->
</tr>
<tr>

<!--** FH 10/10/01 MAH CL1451 Beg Change
**<td class="PSHYPERLINK"><a
HREF="/servlets/iclientservlet/fsprod8/?cmd=login&languageCd=ITA">Italiano</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
**<td class="PSHYPERLINK"><a
HREF="/servlets/iclientservlet/fsprod8/?cmd=login&languageCd=GER">Deutsch</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
**<td class="PSHYPERLINK"><a
HREF="/servlets/iclientservlet/fsprod8/?cmd=login&languageCd=CFR">Fran&ccedil;ais&nbsp;du&nbsp;Canada</a>&nbsp;&nbsp;</td>
** FH 10/10/01 MAH CL1451 End Change**-->
</tr>
<tr>

<!--** FH 10/10/01 MAH CL1451 Beg Change
**<td><a
HREF="/servlets/iclientservlet/fsprod8/?cmd=login&languageCd=JPN"><img
src="/fsprod8/images/kanji.gif" width="37" height="15" align="bottom"
border="0"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
**<td class="PSHYPERLINK"><a
HREF="/servlets/iclientservlet/fsprod8/?cmd=login&languageCd=POR">Portugu&ecirc;s</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
**<td class="PSHYPERLINK"><a
HREF="/servlets/iclientservlet/fsprod8/?cmd=login&languageCd=DUT">Nederlands</a>&nbsp;&nbsp;</td>
** FH 10/10/01 MAH CL1451 End Change**-->
</tr>
<tr>

<!--** FH 10/10/01 MAH CL1451 Beg Change
**<td><a
HREF="/servlets/iclientservlet/fsprod8/?cmd=login&languageCd=ZHT"><img
src="/fsprod8/images/tchinese.gif" width="55" height="16"
align="bottom" border="0"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
**<td class="PSHYPERLINK"><a
HREF="/servlets/iclientservlet/fsprod8/?cmd=login&languageCd=SVE">Svenska</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
** FH 10/10/01 MAH CL1451 End Change**-->
</tr>
<tr class="signInTable">
<td class="PSEDITBOXLABEL">User ID:</td>
<td colspan="3">
<input type="text" id="userid" name="userid"
class="PSEDITBOX">
</td>
</tr>
<tr class="signInTable">
<td class="PSEDITBOXLABEL">Password:</td>
<td colspan="3">
<input TYPE="password" id="pwd" name="pwd"
class="PSEDITBOX">
</td>
</tr>
<tr class="signInTable">
<td class="signInTable">&nbsp;</td>
<td colspan="3">
<input type="submit" name="Submit" value="Sign In"
class="PSPUSHBUTTON" onclick="reset.pwd">
<INPUT type=reset value=Reset>
</td>
</tr>
<tr class="PSHYPERLINK">
<td colspan="4" class="PSHYPERLINK">

</td>
</tr>

</table> </td>
</tr>

</table>
</td>
</tr>
<tr valign="bottom">
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> </td>
<td> </td>
</tr>
<tr>

<td valign="bottom">
<table border="0" cellspacing="0" cellpadding="0"
align="right">

</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
</body>
</html>
 
T

tihu

Hiya. I thought for a mo all you needed to do was call form.reset() in
the signin function but it aint that simple 'cause that would clear the
form before its submitted not after :)

This might work though, if you change the html for the signin button
from

<input type="submit" name="Submit" value="Sign In"
class="PSPUSHBUTTON" onclick="reset.pwd">

to

<input type="button" value="sign In" class="PSPUSHBUTTON"
onclick="document.login.submit(); document.login.reset()">

Tim
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top