Hello Mike, I am currently working on exactly this. Take a look at the form data binding demo I have added recently: http://demo.qooxdoo.org/devel/demobrowser/#ui~MultiPageForm.html This shows you how to connect form fields to a data model and how to serialize that to URL parameters. But you can just change the serializer method to the new json serializer. But as Daniel said, its all experimental and only in trunk available. Best, Martin
Daniel Wagner wrote: > > Hi Mike, > > AFAIK, qooxdoo currently has no way to get all form values at once, so > you'll have to gather the values of your form inputs manually. You can > store them in a map and then run it through qx.util.Json.stringify(). > > Once you've got your JSON string, you can post it to the server using > qx.io.remote.Request. > > We're currently working on improving the form API to make better use of > Data Binding. Eventually you'll be able to just serialize your data > model, so you won't have to iterate over the form fields. But this code > is only in trunk and still experimental. > > Hope this helps. > > > Regards, > Daniel > > Mike UK schrieb: >> Hi >> >> I've probably missed something here but I would like to take the contents >> of >> a form and post the whole of it in JSON format to my backend servlet for >> processing, rather than using URL parameters. >> >> Any clues as to where I started or preferably some example code? >> >> Cheers >> >> Mike > > -- View this message in context: http://n2.nabble.com/Post-contents-of-form-to-servlet-using-JSON-tp3424652p3425622.html Sent from the qooxdoo mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
