Re: A URL API

On Mon, Sep 20, 2010 at 4:27 PM, Adam Barth <w3c@adambarth.com> 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.


That's not true of Google's Closure library:
http://closure-library.googlecode.com/svn/docs/class_goog_Uri.html (see the
set* methods).

Received on Monday, 20 September 2010 06:46:26 UTC