PDA

View Full Version : Using form to create.. forms (not x-form)



cyberwizzard
5 Jun 2007, 8:42 AM
Hi all,

I just started coding with ExtJS and I'm running into a problem: the forms examples are all marvelous but the form that gets rendered uses a x-form tag and looking at the headers I see a XML request going to the server (followed by the redirect that the main page should receive).

How do I change the form type to a basic form? The page that gets the request either returns to the same page (login page) or forwards the viewer to the main page...

Edit: looking at all the examples lit the bulb above my head - thanks for the help :)

jsakalos
5 Jun 2007, 9:37 AM
Hi all,

I just started coding with ExtJS and I'm running into a problem: the forms examples are all marvelous but the form that gets rendered uses a x-form tag and looking at the headers I see a XML request going to the server (followed by the redirect that the main page should receive).

How do I change the form type to a basic form? The page that gets the request either returns to the same page (login page) or forwards the viewer to the main page...

Normally, the forms are not submitted "standard way" in Ext but via asynchronous XMLHttpRequest (ajax) calls. Therefore, server is not expected to return new page but only confirmation of success or errors and error messages.

cyberwizzard
5 Jun 2007, 1:03 PM
I feared as much - so what does Ext to receive? XML I assume but what format? I tried digging through the docs but I can't figure that part out...

tryanDLS
5 Jun 2007, 1:51 PM
Look at the xml form example. Also there have been a number of discussion regarding the data format of form submission.