<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>utilities JavaScript API Module</title><link>https://community.telligent.com/community/13/w/api-documentation/75733/utilities-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>utilities JavaScript API Module</title><link>https://community.telligent.com/community/13/w/api-documentation/75733/utilities-javascript-api-module</link><pubDate>Fri, 08 Mar 2024 17:51:13 GMT</pubDate><guid isPermaLink="false">3d22c4d5-bb2b-469b-803c-48cd9a6afc07</guid><dc:creator>Ben Tiedt</dc:creator><comments>https://community.telligent.com/community/13/w/api-documentation/75733/utilities-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 Utilities&lt;/h3&gt;
&lt;p&gt;This module adds support for generic utilities and site-specific configuration.&lt;/p&gt;
&lt;h3&gt;Methods&lt;/h3&gt;
&lt;h4&gt;getBaseUrl&lt;/h4&gt;
&lt;p&gt;This returns the current absolute-to-root base URL for the site, with a trailing forward slash.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$.telligent.evolution.site.getBaseUrl()
&lt;/code&gt;&lt;/pre&gt;

&lt;h4&gt;getBaseUrl&lt;/h4&gt;
&lt;p&gt;This returns the current absolute-to-root base URL for the site, with a trailing forward slash, or an absolute URL if absolute is set to true.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$.telligent.evolution.site.getBaseUrl(absolute)
&lt;/code&gt;&lt;/pre&gt;

&lt;h4&gt;formatDate&lt;/h4&gt;
&lt;p&gt;Serializes a date properly for REST API usage&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$.telligent.evolution.formatDate(date)
&lt;/code&gt;&lt;/pre&gt;

&lt;h4&gt;writeAuthorizationHeader&lt;/h4&gt;
&lt;p&gt;Allows for manually adding Security Tokens to an xmlHttpRequest before usage. This should not usually be necessary, as it is automatically called by the REST helpers.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$.telligent.evolution.writeAuthorizationHeader(xmlHttpRequest)
&lt;/code&gt;&lt;/pre&gt;

&lt;h4&gt;ensureRemoteUrlEncoding&lt;/h4&gt;
&lt;p&gt;Allows for manually ensuring URLs are encoded for use on sites accessing Evolution via remoting.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;url = $.telligent.evolution.ensureRemoteUrlEncoding(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>