W3C home > Mailing lists > Public > public-webapps@w3.org > July to September 2010


From: Garrett Smith <dhtmlkitchen@gmail.com>
Date: Mon, 20 Sep 2010 09:56:42 -0700
Message-ID: <AANLkTikKz0Uxtxq55dgapH94L_FM1kKY1rPv8jYYHhiT@mail.gmail.com>
To: Julian Reschke <julian.reschke@gmx.de>
Cc: Adam Barth <w3c@adambarth.com>, Devdatta Akhawe <dev.akhawe@gmail.com>, WebApps WG <public-webapps@w3.org>
On 9/20/10, Julian Reschke <julian.reschke@gmx.de> wrote:
> On 20.09.2010 09:22, Garrett Smith wrote:
>> ...
>> I see setParameterValues there. Useful to build URLs for XHR. But OTOH
>> -- Ajax that is using a lot of parameters, might be better using a
>> form. Usually Ajax requests are simple requests -- not a large form
>> submission. Sorry just have to be devils advocate on the necessity of
>> the thing.
>> ...
> How do you use a form to build a request other than GET/POST?
No idea; I wouldn't expect it to work, even if some browser actually
supported something other than GET|POST. I've always used "get" or
"post" and that's what's stated in HTML4.


Might a large-ish form request, a standard form submission be a better
alternative to XHR?

Requests that don't have lot of parameters are often simple one-liners:

url = "/getShipping/?zip=" + zip + "&pid=" + pid;

What XHRs have complicated URL with a lot of query parameters?

Received on Monday, 20 September 2010 16:57:14 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:13:11 UTC