Re: A URL API

On 20.09.2010 08:27, Adam Barth wrote:
> On Sun, Sep 19, 2010 at 10:48 PM, Devdatta Akhawe<dev.akhawe@gmail.com>  wrote:
>>> 1) There are now two methods for getting at the URL parameters.  The
>>
>> and none for setting them?
>
> That's correct.  Looking at various libraries, there seems to be much
> more interested in paring out query parameters than for constructing
> them.  One popular JavaScript library did have an API that took a
> dictionary and built a query string out of it.  I imagine most folks
> just use the HTML Form element.
> ...

If a new standard API is added, it also should cover construction. 
Construction is hard, due to the different escaping rules for paths, 
query parameters etc.

Keep in mind that the original use case was making life easier for 
people using XmlHttpRequest, and that covers many more use cases than forms.

Best regards, Julian

Received on Monday, 20 September 2010 06:47:01 UTC