POST serialized JSON object to a Coldfusion remote method instead of using FORM

Posted by zarko.susnjar on Stack Overflow See other posts from Stack Overflow or by zarko.susnjar
Published on 2010-04-19T15:34:17Z Indexed on 2010/04/19 15:53 UTC
Read the original article Hit count: 232

Filed under:
|
|
|
|

I have javascript object which consists of complex array of structures with nested structures of other javascript objects created dynamicaly on page etc. long story. I can't use form since my vars would be like 2_34_x_y_foo_bar_235423 due to the nature of UI.

When I send that stringified object using GET .ajax request to a remote cfc method everything runs ok until JSON becomes 4000+ chars long, and usually it will be longer then that.

When I use POST .ajax, I get 302 status and redirection to cfcexplorer.

Is there some way I could "attach" object to a form and send my data as form submit, or some way to send JSON object as it is now using ajax call?

© Stack Overflow or respective owner

Related posts about coldfusion

Related posts about jQuery