@Lothar:

Lothar Kaiser schrieb:
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. 

  
This was the way the deprecated QxXmlHttpLoader class did it: If the method is POST the paramters were sent by req.send().
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




  
Yes, this is the way qooxdoo's implementation works currently. 
Parameters will always be attached to the URL. If you want to submit 
"data" please use setData method for your request object.

What would be a better behaviour in your opinion? Patches are welcome!

Sebastian

    




-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
  

-- 
Mit freundlichen Grüßen
Dietrich Streifert
Visionet GmbH

Reply via email to