NM. I forget JQuery had serialization built into it.
On Jul 19, 9:03 am, Coop <coob...@gmail.com> wrote: > All, > I have a situation where I need to pass the same named attribute to an > AJAX enabled endpoint. Basically I need to simulate something > likehttp://example/cgi?text=1500characters&text=1500characters. I need > this type of scenario to work in typical JQuery AJAX and JSONP calls. > I understand that I may run into browser/server URL limitations. > > In case anyone is wondering, I’m AJAX enabling some old PL/SQL code > using Oracle's Webtoolkit and there’s a limitation on the size of an > input string. To overcome this limitation I need to chop up the string > on the client side and send it in pieces to the endpoint using the > same parameter name. Something like the below would be the best > scenario but I know it’s against the JSON spec. > > {"data": { > "text": "1500characters...", > "text": "1500characters..." > > }} > > I’m currently evaluating Oracle’s flexible parameter naming schema and > the worst case scenario…I’ll create some specific text parameters on > the server like text1, text2, text3, text4 …I really don’t want to do > it this way. > > Any help is appreciated.