<?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/11/w/api-documentation/65145/utilities-javascript-api-module</link><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/11/w/api-documentation/65145/utilities-javascript-api-module</link><pubDate>Tue, 19 Nov 2019 20:27:21 GMT</pubDate><guid isPermaLink="false">930a65c5-f842-4bc4-851c-45293bf9f32b</guid><dc:creator>Ben Tiedt</dc:creator><comments>https://community.telligent.com/community/11/w/api-documentation/65145/utilities-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_Utilities" name="jQuery_telligent_evolution_Utilities"&gt;&lt;/a&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;&lt;a id="Methods" name="Methods"&gt;&lt;/a&gt;Methods&lt;/h3&gt;
&lt;h4&gt;&lt;a id="getBaseUrl" name="getBaseUrl"&gt;&lt;/a&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;&lt;a id="getBaseUrl" name="getBaseUrl"&gt;&lt;/a&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;&lt;a id="formatDate" name="formatDate"&gt;&lt;/a&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;&lt;a id="writeAuthorizationHeader" name="writeAuthorizationHeader"&gt;&lt;/a&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;&lt;a id="ensureRemoteUrlEncoding" name="ensureRemoteUrlEncoding"&gt;&lt;/a&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>