Class orion.urlencode
Utilities for dealing with URL and form encoding.
Defined in: </shared/eclipse/e4/orion/I201301232230/plugins/org.eclipse.orion.client.core/web/orion/urlencode.js>.
Constructor Attributes | Constructor Name and Description |
---|---|
Method Attributes | Method Name and Description |
---|---|
<static> |
orion.urlencode.appendQuery(url, queryString)
Returns a URL with the given queryString in its query component.
|
<static> |
orion.urlencode.encodeFormData(data)
Encodes an object of form fields and values as an
application/x-www-form-urlencoded string. |
<static> |
orion.urlencode.encodeQuery(data)
Encodes an object of key-value pairs as a string suitable for the query component of a URI.
|
Method Detail
<static>
{String}
orion.urlencode.appendQuery(url, queryString)
Returns a URL with the given queryString in its query component.
- Returns:
- {String} The URL with
queryString
appended to its query component.
<static>
{String}
orion.urlencode.encodeFormData(data)
Encodes an object of form fields and values as an
application/x-www-form-urlencoded
string.
- Parameters:
- {Object} data
- The form data to encode.
- Returns:
- {String} The
x-www-form-urlencoded
string.
<static>
{String}
orion.urlencode.encodeQuery(data)
Encodes an object of key-value pairs as a string suitable for the query component of a URI.
- Parameters:
- {Object} data
- The parameters to encode.
- Returns:
- {String} The URL-encoded string.