Difference between revisions of "CR.url"

From Market Ruler Help
Jump to: navigation, search
(Redirected page to CR.URL)
 
(17 intermediate revisions by the same user not shown)
Line 1: Line 1:
The '''__CR.URL''' function is a [[JavaScript]] function that parses the URL. It returns a newly created URL object representing the URL defined by the parameters.
+
#REDIRECT [[CR.URL]]
 
 
== Using CR.URL() ==
 
 
 
__CR.data = function (name, value) { ... }
 
 
 
The '''name''' is the exact name of the variable to store and can be a string or scalar value. The '''name''' is converted to a string before usage. The '''value''' is a simple string, object, or numeric value to store. Values which are arbitrarily large (such as objects or deep structures) should be avoided as they can cause issues with servers which reject cookies which grow beyond a certain size limit.
 
Example usage:
 
 
 
    hash: ""
 
    host: ""
 
    parse: ƒ (url)
 
    parseQuery: ƒ (q)
 
    path: ""
 
    port:
 
    protocol: ""
 
    query: ""
 
    queryParams:
 
    queryparams: {}
 
    unparse: ƒ ()
 
    unparseQuery: ƒ ()
 
    url: ""
 
    arguments: (...)
 
    caller: (...)
 
    length:
 
    name: ""
 
    prototype: {}
 
    __proto__: ƒ ()
 
    [[FunctionLocation]]:
 
    [[Scopes]]: Scopes[]
 
 
 
 
 
   
 
 
 
 
 
 
 
== See also ==
 

Latest revision as of 18:59, 24 June 2020

Redirect to: