Difference between revisions of "CR.url"

From Market Ruler Help
Jump to: navigation, search
Line 1: Line 1:
The '''__CR.url''' function is a [[JavaScript]] function that returns a newly created URL object representing the URL defined by the parameters.  
+
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.  
  
 +
== 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:  
 
Example usage:  
  

Revision as of 02:29, 23 June 2020

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.

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