[jQuery] JSONP for REST webservice

2009-05-13 Thread sr
I want to use JSONP to connect to a REST webservice to avoid an additional proxy. But the jquery lib adds the JSONP callback parameter only to the URL if GET is used as request type, but not on DELETE, PUT POST. I modified the jquery lib to avoid that problem like this: 3409: //

[jQuery] JSONP REST webservice

2009-06-19 Thread sr
Hi, I want to use JSONP to call a REST webservice. Therefore I need the jsonp_callback parameter added to the URL for GET, POST, DELETE and PUT requests. Regrettably the jQuery library adds this parameter only to the URL if I do a GET request, otherwise the lib tries to add it to the data stream