jQuery in Action, 2nd edition*
The moose likes HTML, CSS and JavaScript and the fly likes how to deserialize form data Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "how to deserialize form data" Watch "how to deserialize form data" New topic
Author

how to deserialize form data

sam White
Ranch Hand

Joined: Feb 18, 2011
Posts: 208
Hi,
With jsp and jquery, I need to keep the form data in memory before calling window.open. When the popup page is closed, refresh the parent page and then restore the form data from memory.
I can use jquery .serialize the form data into string, and when refresh the parent page, onLoad() gets the formData from sessoin Storage.
But the problem now is I don't know how to deserialize the formData.

Here is my openWindow() js function:



when page refreshed (with onLoad()):



I have been googling for the topics, but couldn;t found a similar solution that suits my case.
If anyone can suggestion a way or point me to a tutorial or example, it will be very appreciated.
Thanks
Sam
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
You are going to have to split up the data in the memory and set all of the form fields with the values, there is nothing built in that does that for you.

Eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to deserialize form data
 
Similar Threads
How to clear portlet cache?
Frames loading twice on refresh
JSP & JavaScript! assigning values to html form through Session variable
help me.. problem with using android app, jquerymobile and html
jQuery to post data without leaving page & textarea CKEditor?