<?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/13/w/api-documentation/75732/url-javascript-api-module</link><description>&lt;p&gt;&lt;span&gt;Developing on Verint Community? Use the API documentation as a reference for all supported interactions with Verint Community.&lt;/span&gt;&lt;/p&gt;</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/13/w/api-documentation/75732/url-javascript-api-module</link><pubDate>Fri, 08 Mar 2024 17:51:13 GMT</pubDate><guid isPermaLink="false">10ef52ff-0b1a-445b-a719-84cac2efca26</guid><dc:creator>Ben Tiedt</dc:creator><comments>https://community.telligent.com/community/13/w/api-documentation/75732/url-javascript-api-module#comments</comments><description>Current Revision posted to API Documentation by Ben Tiedt on 03/08/2024 17:51:13&lt;br /&gt;
&lt;hr class="generated-documentation-start" style="border-width:0;" /&gt;&lt;h3&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;Methods&lt;/h3&gt;
&lt;h4&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;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;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;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;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;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;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;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;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;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;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;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>