View Full Version : Problem with Objects :(

24 Aug 2009, 12:33 AM
Hi Guys,

Sorry Animal i change my post and uploaded a Picture with my Problem:

with "Ext.getCmp('formpdf').getForm().submit()", i get an really uncomfortable post, is there a way to get an array back when the fieldnames are the same?


24 Aug 2009, 12:51 AM
No clue what you're on about.

24 Aug 2009, 1:56 AM
That is standard HTML form submission.

Most server side frameworks create an array of values from multiple parameters with the same name.

When you say "get an array", how do you want the POST body to be encoded? If you want to use some non-standard encoding method which server-side frameworks won't understand which you will have to parse your self on the server side, then you'll have to write both client and server side code.

Maybe you want to submit JSON??? Does your server understand JSON?

24 Aug 2009, 1:57 AM
yep JSON would be the best way for me can u give me a hint how i can realize that?, thx for the fast response

24 Aug 2009, 2:01 AM
So you will want to call getValues on the Form, and submit using Ajax, using jsonData