setUrlEncodedKey

Retrieves a query string value from the current or provided query string.

o.Global.setUrlEncodedKey(key,value,query)

Return Value

Updated query string

Parameters

key
The key to update

value
The string value to set it to. Value will be automatically url encoded.

query
Optional - query string that is used for lookups

Example

var q = "?name=rick&company=west%20wind&page=3&status=active";
var page = setUrlEncodedKey("page","4",q); 

// q: ?name=rick&company=west%20wind&page=4&status=active;

© West Wind Technologies, 1996-2016 • Updated: 12/12/15
Comment or report problem with topic