<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>url JavaScript API Module</title><link>https://community.telligent.com/community/11/w/api-documentation/65144/url-javascript-api-module</link><description /><dc:language>en-US</dc:language><generator>14.0.0.586 14</generator><item><title>url JavaScript API Module</title><link>https://community.telligent.com/community/11/w/api-documentation/65144/url-javascript-api-module</link><pubDate>Tue, 19 Nov 2019 20:27:21 GMT</pubDate><guid isPermaLink="false">c4e93527-11bc-47e6-8c8b-f9843094f9d3</guid><dc:creator>Ben Tiedt</dc:creator><comments>https://community.telligent.com/community/11/w/api-documentation/65144/url-javascript-api-module#comments</comments><description>Current Revision posted to API Documentation by Ben Tiedt on 11/19/2019 20:27:21&lt;br /&gt;
&lt;hr class="generated-documentation-start" style="border-width:0;" /&gt;&lt;h3&gt;&lt;a id="jQuery_telligent_evolution_url" name="jQuery_telligent_evolution_url"&gt;&lt;/a&gt;jQuery.telligent.evolution.url&lt;/h3&gt;
&lt;p&gt;Methods for parsing and manipulating URLs, query strings, and hashes.&lt;/p&gt;
&lt;h3&gt;&lt;a id="Methods" name="Methods"&gt;&lt;/a&gt;Methods&lt;/h3&gt;
&lt;h4&gt;&lt;a id="parseQuery" name="parseQuery"&gt;&lt;/a&gt;parseQuery&lt;/h4&gt;
&lt;p&gt;Returns an object representation of the query strings key/value pairs.  &lt;code&gt;queryString&lt;/code&gt; can optionally include &amp;#39;?&amp;#39; or &amp;#39;#&amp;#39; which will be ignored as bounds&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$.telligent.evolution.url.parseQuery(queryString)
&lt;/code&gt;&lt;/pre&gt;

&lt;h4&gt;&lt;a id="serializeQuery" name="serializeQuery"&gt;&lt;/a&gt;serializeQuery&lt;/h4&gt;
&lt;p&gt;Converts key/value pairs into a new query string&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$.telligent.evolution.url.serializeQuery(data)
&lt;/code&gt;&lt;/pre&gt;

&lt;h4&gt;&lt;a id="modify" name="modify"&gt;&lt;/a&gt;modify&lt;/h4&gt;
&lt;p&gt;Modifies a URL with the values from a given query string and hash.  If &lt;code&gt;url&lt;/code&gt; is not specified, the current URL is used.  &lt;code&gt;query&lt;/code&gt; and &lt;code&gt;hash&lt;/code&gt; are optional and, if not provided, will result in no modifications to that component of the URL.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$.telligent.evolution.url.modify(options)
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;em&gt;options:&lt;/em&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;url&lt;/code&gt;: URL to modify. (default: current)&lt;/li&gt;
&lt;li&gt;&lt;code&gt;query&lt;/code&gt;: Map of keys/values to add/replace in the query string&lt;/li&gt;
&lt;li&gt;&lt;code&gt;hash&lt;/code&gt;: Map of keys/values to add/replace in the hash&lt;/li&gt;
&lt;li&gt;&lt;code&gt;protocol&lt;/code&gt;: Protocol, defaulting to current page&amp;#39;s&lt;/li&gt;
&lt;/ul&gt;
&lt;h4&gt;&lt;a id="hashData" name="hashData"&gt;&lt;/a&gt;hashData&lt;/h4&gt;
&lt;p&gt;Returns an object key/value pair of the existing querystring-encoded data that&amp;#39;s in the current hash&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$.telligent.evolution.url.hashData()
&lt;/code&gt;&lt;/pre&gt;

&lt;h4&gt;&lt;a id="hashData" name="hashData"&gt;&lt;/a&gt;hashData&lt;/h4&gt;
&lt;p&gt;Adds/updates key/value pairs with the existing pairs in the hash and updates the current hash&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$.telligent.evolution.url.hashData(data, options)
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;em&gt;options:&lt;/em&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;overrideCurrent&lt;/code&gt;: when true, replaces all items in the hash with only those provided&lt;/li&gt;
&lt;li&gt;&lt;code&gt;prefix&lt;/code&gt;: prefixes each key in the serialized hash with the optional value provided&lt;/li&gt;
&lt;/ul&gt;
&lt;h4&gt;&lt;a id="encode" name="encode"&gt;&lt;/a&gt;encode&lt;/h4&gt;
&lt;p&gt;Returns the URL-encoded version of text&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$.telligent.evolution.url.encode(text)
&lt;/code&gt;&lt;/pre&gt;

&lt;h4&gt;&lt;a id="decode" name="decode"&gt;&lt;/a&gt;decode&lt;/h4&gt;
&lt;p&gt;Returns the URL-decoded version of text&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$.telligent.evolution.url.decode(text)
&lt;/code&gt;&lt;/pre&gt;

&lt;h4&gt;&lt;a id="encodePathComponent" name="encodePathComponent"&gt;&lt;/a&gt;encodePathComponent&lt;/h4&gt;
&lt;p&gt;Returns the URL-path-component-encoded version of text. This is the lossless format used in Evolution for data within URL paths.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$.telligent.evolution.url.encodePathComponent(text)
&lt;/code&gt;&lt;/pre&gt;

&lt;h4&gt;&lt;a id="decodePathComponent" name="decodePathComponent"&gt;&lt;/a&gt;decodePathComponent&lt;/h4&gt;
&lt;p&gt;Returns the URL-path-component-decoded version of text.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$.telligent.evolution.url.decodePathComponent(data)
&lt;/code&gt;&lt;/pre&gt;

&lt;h4&gt;&lt;a id="encodeFileComponent" name="encodeFileComponent"&gt;&lt;/a&gt;encodeFileComponent&lt;/h4&gt;
&lt;p&gt;Returns the URL-file-component-encoded version of text. This is the lossless format used in Evolution for data within URL file name.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$.telligent.evolution.url.encodeFileComponent(text)
&lt;/code&gt;&lt;/pre&gt;

&lt;h4&gt;&lt;a id="decodeFileComponent" name="decodeFileComponent"&gt;&lt;/a&gt;decodeFileComponent&lt;/h4&gt;
&lt;p&gt;Returns the URL-file-component-decoded version of text.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$.telligent.evolution.url.decodeFileComponent(data)
&lt;/code&gt;&lt;/pre&gt;

&lt;h4&gt;&lt;a id="navigateTo" name="navigateTo"&gt;&lt;/a&gt;navigateTo&lt;/h4&gt;
&lt;p&gt;Navigates to the provided URL and honors any base URL targets.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$.telligent.evolution.url.navigateTo(url)
&lt;/code&gt;&lt;/pre&gt;

&lt;hr class="generated-documentation-end" style="border-width:0;" /&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;
</description></item></channel></rss>