|
@Lothar: Lothar Kaiser schrieb: This was the way the deprecated QxXmlHttpLoader class did it: If the method is POST the paramters were sent by req.send().Wow.. quite a fast reply :-) Well, if the request method is set to 'POST' you could automatically put the parameters[] into data. But maybe I just didn't get the point with the difference between data and parameters. If the method is GET the parameters are appended to the URL. There was a method called _applyRequestProperties which formed the URL or the POST data from the parameters. Then the load method was called like: // append the request properties to the request url // if the method is of type GET if ( method == "GET" ) url = ""> this.req.open(method, url, true); // apply request headers to the request object // this._applyHeaders(); // if the request method is POST // create a property list and use it as argument to the send // method var data = ""> if ( method == "POST" ) data = ""> return this.req.send(data); I just currently have not time to contribute a patch. Sorry. I'm gonna try out my code with setData(). Thanks, Lothar -- Mit freundlichen Grüßen Dietrich Streifert Visionet GmbH |
- Re: [qooxdoo-devel] QxPostRequest uses URL-encoded para... Lothar Kaiser
- Re: [qooxdoo-devel] QxPostRequest uses URL-encoded... Dietrich Streifert
- Re: [qooxdoo-devel] QxPostRequest uses URL-enc... Sebastian Werner
- Re: [qooxdoo-devel] QxPostRequest uses URL... Dietrich Streifert
- Re: [qooxdoo-devel] QxPostRequest uses URL-encoded... Sebastian Werner
