Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

how to deserialize form data

Ranch Hand
Posts: 229
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
With jsp and jquery, I need to keep the form data in memory before calling 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.
Posts: 15385
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

    Bookmark Topic Watch Topic
  • New Topic