Tom Mccann
Posts: 0
Joined: Sun Nov 03, 2013 8:11 am

serializing a form's contents

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.

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

serializing a form's contents

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...

Return to “Issues”