![]()
Appends key=value pairs to an array, supporting multi-valued objects.
|
code » | ||||||||
Appends a single URI parameter.
Repeated calls to this can exhibit quadratic behavior in IE6 due to the
way string append works, though it should be limited given the 2kb limit.
Arguments:
Returns: string
The URI with the query parameter added.
|
code » | ||||||||
Appends URI parameters to an existing URI.
The variable arguments may contain alternating keys and values. Keys are
assumed to be already URI encoded. The values should not be URI-encoded,
and will instead be encoded by this function.
appendParams('http://www.foo.com?existing=true', 'key1', 'value1', 'key2', 'value?willBeEncoded', 'key3', ['valueA', 'valueB', 'valueC'], 'key4', null); result: 'http://www.foo.com?existing=true&' + 'key1=value1&' + 'key2=value%3FwillBeEncoded&' + 'key3=valueA&key3=valueB&key3=valueC'A single call to this function will not exhibit quadratic behavior in IE, whereas multiple repeated calls may, although the effect is limited by fact that URL's generally can't exceed 2kb. |
code » | ||||||||
Appends query parameters from a map.
|
code » | ||||||||
Generates a URI path using a given URI and a path with checks to
prevent consecutive "//". The baseUri passed in must not contain
query or fragment identifiers. The path to append may not contain query or
fragment identifiers.
|
code » | ||||||||
Appends a URI and query data in a string buffer with special preconditions.
Internal implementation utility, performing very few object allocations.
Arguments:
Returns: string
The concatenated URI and query data.
|
code » | ||||||||
![]()
Asserts that there are no fragment or query identifiers, only in uncompiled
mode.
Arguments:
|
code » | ||||||||
![]()
Builds a URI string from already-encoded parts.
No encoding is performed. Any component may be omitted as either null or
undefined.
Arguments:
Returns: string
The fully combined URI.
|
code » | ||||||||
Builds a query data string from a sequence of alternating keys and values.
Currently generates "&key&" for empty args.
Arguments:
Returns: string
The encoded query string, in the form 'a=1&b=2'.
|
code » | ||||||||
Builds a buffer of query data from a map.
Arguments:
|
code » | ||||||||
![]()
Builds a buffer of query data from a sequence of alternating keys and values.
Arguments:
|
code » | ||||||||
Builds a query data string from a map.
Currently generates "&key&" for empty args.
|
code » | ||||||||
No description.
|
code » | ||||||||
Finds the next instance of a query parameter with the specified name.
Does not instantiate any objects.
Arguments:
Returns: number
The position of the first character in the key's name,
immediately after either a question mark or a dot.
|
code » | ||||||||
Gets a URI component by index.
It is preferred to use the getPathEncoded() variety of functions ahead,
since they are more readable.
|
code » | ||||||||
No description.
|
code » | ||||||||
No description.
|
code » | ||||||||
Gets the effective scheme for the URL. If the URL is relative then the
scheme is derived from the page's location.
|
code » | ||||||||
No description.
|
code » | ||||||||
No description.
|
code » | ||||||||
Extracts everything up to the port of the URI.
|
code » | ||||||||
Gets the first value of a query parameter.
|
code » | ||||||||
Gets all values of a query parameter.
|
code » | ||||||||
No description.
|
code » | ||||||||
Extracts the path of the URL and everything after.
|
code » | ||||||||
No description.
|
code » | ||||||||
No description.
|
code » | ||||||||
No description.
|
code » | ||||||||
No description.
|
code » | ||||||||
No description.
|
code » | ||||||||
No description.
|
code » | ||||||||
Determines if the URI contains a specific key.
Performs no object instantiations.
|
code » | ||||||||
Ensures that two URI's have the exact same domain, scheme, and port.
Unlike the version in goog.Uri, this checks protocol, and therefore is
suitable for checking against the browser's same-origin policy.
|
code » | ||||||||
Sets the zx parameter of a URI to a random value.
|
code » | ||||||||
![]()
Check to see if the user is being phished.
|
code » | ||||||||
Gets the URI with the fragment identifier removed.
|
code » | ||||||||
Removes all instances of a query parameter.
|
code » | ||||||||
No description.
|
code » | ||||||||
Replaces all existing definitions of a parameter with a single definition.
Repeated calls to this can exhibit quadratic behavior due to the need to
find existing instances and reconstruct the string, though it should be
limited given the 2kb limit. Consider using appendParams to append multiple
parameters in bulk.
|
code » | ||||||||
Replaces the path.
|
code » | ||||||||
Splits a URI into its component parts.
Each component can be accessed via the component indices; for example:
goog.uri.utils.split(someStr)[goog.uri.utils.CompontentIndex.QUERY_DATA];
Arguments:
Returns: !Array.<string | undefined>
Each component still URI-encoded.
Each component that is present will contain the encoded value, whereas
components that are not present will be undefined or empty, depending
on the browser's regular expression implementation. Never null, since
arbitrary strings may still look like path names.
|
code » |
![]()
No description.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
No description.
|
Code » |