View Full Version : Where's the documentation, on details, on Form.submit and data types?

23 Jul 2012, 7:30 AM
If I create a form panel, I have a 'submit' method for sending off the contents of the form to a server and getting called back on the results. I'm feeling a bit slow working through the doc on this, in fact, I've got some things working more by reverse engineering than reading the doc.

By default, this call expects the response from a service to be JSON, and to include a boolean named 'success'. I see why, since with iframes for file upload the HTTP status codes disappear. However, I can't find any doc that explains this. I also see a reference to an alternative action class to use if the result is going to be XML, but I haven't found an explanation of the whole structure.

I'd be most grateful for a pointer.

14 Nov 2012, 3:50 PM
You are absolutely correct regarding the iframe file upload. We emulate an AJAX request by posting a file via a form in an iframe. This information can be found in data's connection class.