473,322 Members | 1,501 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

reseting fields

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/servlets/iclientservlet/fsprod8/servlets/iclientservlet/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>

Feb 20 '06 #1
2 1325
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

Feb 20 '06 #2
Perfect! Thank you!

Feb 20 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Tim Cowan | last post by:
Hi I am trying to create a CSV file with some fields in double quotes ("). I am not having any luck. This is what I want; "8684","COSTING","000010001","REG",X4,15.00, ,14,0,14,9,6 I am...
0
by: bill mahoney | last post by:
I have access 2k and I have 2 tables. One is a 7X6 table representing a month with zeroes padding the fields where no day exist. For example February 2003 0 0 0 0 0 0 1 2 3 4 5 6 7 ...
4
by: Melissa | last post by:
I have a frontend file named CustomerApp and backend file named CustomerData. CustomerApp is at C:\Customer Database and CustomerData is at S:\Customer Database. Could someone help me with the code...
5
by: Megan | last post by:
Hi everybody- I'm helping a friend with a music database. She has an old one and is creating a new one. She wants to compare records and fields in the old database with records and fields in the...
2
by: Darryl Kerkeslager | last post by:
As the subject above hopefully makes clear, I want to do several reports, "with lots of fields not otherwise in database". These reports also have variable-length text. I have defined the...
0
by: Proteus | last post by:
Hi, I'm using access 97 on windows 98. I have table with 162 fields in it. I need to withdraw this information in a (totals) query with 164 fields (162 "avg" fields and 2 "count" fields). When I...
1
by: waschbaer2 | last post by:
Hi! What's the proper Visual Basic for Applications (VBA) code for reseting the menu bar and the tool bar in Access. Thanks in advance, Markus
5
by: Genboy | last post by:
My "VIS" Website, which is a C# site created in VS.NET, Framework 1.1, is no longer compiling for me via the command line. As I have done 600 times in the last year and a half, I can compile to...
4
by: Vigneshwar Pilli via DotNetMonster.com | last post by:
Hey, Well, I have a Problem. I have designed a table which has few fields which are being declared in the database of type .... char of length 10. and other fields with varchar 50 and...
482
by: bonneylake | last post by:
Hey Everyone, Well i am not sure if this is more of a coldfusion problem or a javscript problem. So if i asked my question in the wrong section let me know an all move it to the correct place. ...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.