Page 1 of 1

serializing a form's contents

Posted: Sat Feb 22, 2014 1:46 am
by Tom Mccann

I'm trying to compare a form's values between when the document/form opens and when the user leaves - so that I can prompt the user to save.

Can you tell me if it's possible to serialize the contents of the form? jQuery has a serialize function which is invoked on the form object. However, I looked at the html generated by Appery and it doesn't generate a form element, just a series of nested divs.

I'd be happy to get other suggestions as to how to serialize the form contents.

I realize I could do this with a bunch of code that would be customised and different for each form, reading each field's value and appending to a string, but what I'm after is a single function that would work for any form.

Hope you can help. Thanks.


serializing a form's contents

Posted: Sat Feb 22, 2014 2:41 am
by Igor

You could use HTML component for the form component. http://docs.appery.io/documentation/u...
And there are also a lot of jquery form plugins : http://www.jquery4u.com/forms/10-jque...