Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

ASP.NET Forum


You are currently viewing our ASP.NET Forum as a guest. Please register to participate.
Login



Reply
Old 02-20-2006, 01:11 PM ASp forms
Skilled Talker

Posts: 95
Trades: 0
Ok i have a page with a form on it. When the user clicks the submit button on a seperate page( doing it on seperate page due to limitaion sum users have 15" screens) it displays what errors they made and gives them a link back a page. with all the information they entered in still there.

that all pretty straight forward nothing fancy, however...

On the form that is being submitted i have a button that opens a window using java script and another that loads new window with a javascript calendar datepicker in it.

if either of those other windows is opened when i click the back button the users information that they entered for the entire form is wiped out!!!

How? Why?

how do i stop it?

The back button methods that i've tried :

Browser back button

Vbscript
Code:
<FORM method="POST" name="VBScript_Nav_Sample">
     <INPUT TYPE="button" NAME="Go Back!"
      VALUE="VBScript_Backup_Sample" LANGUAGE="VBScript"
      OnClick="call window.history.back(1)">
   </FORM>

and javascipt
Code:
 
<a href="JavaScript:history.back(5)">the past</a>
All work fine as long as the buttons are not pressed and the other windows not open up.

How can i stop my information getting erased?
thanks all for your help
higginbt is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 02-23-2006, 06:02 AM Re: ASp forms
Skilled Talker

Posts: 95
Trades: 0
Ok after hours of seraching for help. I've believe i've found the answer.

Its a bug in IE and old versions of fire fox. Updated FireFox and it works fine.

IE still not working so had to use client side validation.

Still going to use serverside validation for those people that dont have javascript. But if they make a mistake they will just have to enter the info again. :>
higginbt is offline
Reply With Quote
View Public Profile
 
Old 02-23-2006, 05:10 PM Re: ASp forms
ChipJohns's Avatar
I don't know! Do you?

Posts: 488
Name: Chip Johns
Location: Savannah Georgia
Trades: 0
Remember Higginbt just because YOU updated your browser doesn't mean that everyone else is going to. If you want everybody to have the same functionality, you need to code for it.

The safest way to do this would be to pass the information back via form functions and reload them into the original fields and not rely on the browser's technology to do it for you. You will have to inculde an IF statement to make it work, but I would rather have the control as to giving the control to the browser..

--
ChipJohns is offline
Reply With Quote
View Public Profile Visit ChipJohns's homepage!
 
Old 03-02-2006, 09:40 AM Re: ASp forms
Skilled Talker

Posts: 95
Trades: 0
Thanks for that. No i' aware that some people wont have the most uptodate browsers..

So i've fixed it clients side with Java script not allowing the form to be posted untill its details are entered correctly.

I know you now may say what if you dont have java. Well its still server side checked but the good thing about writing a car booking system to be used on the company intranet is i know every one here has java installed.
higginbt is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to ASp forms
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.13340 seconds with 12 queries