Connecting Tech Pros Worldwide Help | Site Map

Issues with form.serialize

Newbie
 
Join Date: Sep 2007
Posts: 2
#1: Sep 14 '07
Hi,

I'm trying to submit a for using remote function and Form.serialize, if I render the contents of the parameter in the controller all I see is [object Object]. I understand that Form.serialize creates the object when the getHash option is set to true but I'm not sure how to access the data that should be in the object. Any suggestions would be greatly appreciated.
Expert
 
Join Date: May 2007
Posts: 213
#2: Sep 14 '07

re: Issues with form.serialize


I haven't used serialize much, but I have seen a couple ways of getting the data.

You can try
Expand|Select|Wrap|Line Numbers
  1. Marshal.load(serialized_data)
or
Expand|Select|Wrap|Line Numbers
  1. serialized_field[i]['description']
for i = 0 to number of serialized fields.
Reply