javascript thread: RE: [asp_databases] Resetting Selected Values on a Back Arrow Click
This is a multi-part message in MIME format.
------=_NextPart_000_0004_01C01833.078C2E40
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
I think it is possible but you must use JavaScript. It is not an ASP
problem.
The way I would do it is using the onSubmit event of the form tag and
simulating the get method.
<form onSubmit="resetValuesAndGoToDisplayPage()">
....
Your form here...
....
</form>
<script language="JavaScript">
<!--
function resetValuesAndGoToDisplayPage()
{
//...
//...First some code to generate a URL sting kind of
//... myURL="mypage.asp?elem1=somthing&elem2=something..."
//...using the form object
//...
//...
//...Second code to reset the values of the form
//...
//and now ...
document.location = myURL
}
//-->
</script>
This way you leave the page in a very neat state, so you can reuse it when
you press the back button.
Hope this gives you a hint on your problem.
Regards,
Gonzalo
-----Mensaje original-----
De: Rick [mailto:rick@f...]
Enviado el: miércoles, 06 de septiembre de 2000 15:04
Para: ASP Databases
Asunto: [asp_databases] Resetting Selected Values on a Back Arrow Click
Is there a way, in IE4+, for the Clicked or Checked values to be Reset
everytime a user Clicks the back button to return to the page after
viewing
output...
Example:
1. User clicks some names and some options...Then Submits
2. Form is actively created on next page (through Data derived from SQL)
3. User clicks back button to do it again with different values...
4. All previously Clicked or Checked items are refreshed to Unclicked or
Unchecked...
Thanks,
Rick
---
You are currently subscribed to asp_databases