Login Register Help
API Documentation
Choose a stylesheet:

Functiondojo.queryToObject (returns Object)

dojo.require("dojo._base.xhr");

This string:

    "foo=bar&foo=baz&thinger=%20spaces%20=blah&zonk=blarg&"

results in this object structure:

    {
        foo: [ "bar", "baz" ],
        thinger: " spaces =blah",
        zonk: "blarg"
    }

Note that spaces and other urlencoded entities are correctly handled.

parametertypedescription
strString 

Usage

var foo: Object=dojo.queryToObject(str: String);