• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

input Form Data lost

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Urgent help........
I developed a webapplication in which user give some certain input data in form. The data contains one URL (user to give this url).
Before submiting the data, user is to go to confirmation page wherein the url is hyperlinked and this url opens in new window. In the confirmation page, if i click on this url (which opens in second window - i used "target=_blank" for this) and then goes to input form, all the input data are lost. Subsequently, user to enter his data again which is painful. I want to restore all the input data in the form which have been entered by user. But don'y why ?
IF i don't click the url and then go back to input form , it works fine- all the input data remain there in the input form.
input form..>confirmation page(contains url)..>submit
Any body can help me out?
thanks
manish
 
Ranch Hand
Posts: 4716
9
Scala Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i had a similar problem but it went away on its own. are you sure other visitors have the same problem? i figured it was just a glitch or something since it started working ok on its own. if i clicked on the wife link and opened the new window, after i closed it the buttons didnt work right. but then it started working.


<form><input type="button" value="No, I want something else" on_Click="history.back()"></form>
<form><input type="button" value="Yes, I'm finished" on_Click="window.location='/examples/servlet/CheckoutServlet'"></form>
<p>Before you go let me introduce my <a href="wife.html" target="outside">wife</a>


i had to modify the on click in order to post the code here.
[ January 20, 2002: Message edited by: Randall Twede ]
 
Manish
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks for your reply. I am using these code in my jsp.
<a href="Url">Name</a>
<a href="javascript:history.back()">back</a>
I am unable to get the input form data entered by user if click url in second page and then return back to input form in parent window.
thanks manish
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If I were you, I would use cookies and store the info in there.
when the page is loaded, have it check for a cookie and if it exsisits, get the information from it.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic