Functiondojo.objectToQuery

<script src="../../js/dojo.js"></script>
defined in dojo/_base/xhr.js

takes a name/value mapping object and returns a string representing a URL-encoded version of that object.

Usage

function (/*Object*/ map) (view source)
parametertypedescription
mapObject 

Examples

Example 1

this object:

{
    blah: "blah",
    multi: [
        "thud",
        "thonk"
    ]
};

yields the following query string:

"blah=blah&multi=thud&multi=thonk"