<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>media JavaScript API Module</title><link>https://community.telligent.com/community/11/w/api-documentation/65017/media-javascript-api-module</link><description /><dc:language>en-US</dc:language><generator>14.0.0.586 14</generator><item><title>media JavaScript API Module</title><link>https://community.telligent.com/community/11/w/api-documentation/65017/media-javascript-api-module</link><pubDate>Tue, 19 Nov 2019 20:28:29 GMT</pubDate><guid isPermaLink="false">2a072af8-eea5-48a0-a028-a0bb8243334c</guid><dc:creator>Ben Tiedt</dc:creator><comments>https://community.telligent.com/community/11/w/api-documentation/65017/media-javascript-api-module#comments</comments><description>Current Revision posted to API Documentation by Ben Tiedt on 11/19/2019 20:28:29&lt;br /&gt;
&lt;hr class="generated-documentation-start" style="border-width:0;" /&gt;&lt;h3&gt;&lt;a id="jQuery_telligent_evolution_media" name="jQuery_telligent_evolution_media"&gt;&lt;/a&gt;jQuery.telligent.evolution.media&lt;/h3&gt;
&lt;p&gt;This module allows server-side file viewers to be invoked for URLs from the client side.&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="previewHtml" name="previewHtml"&gt;&lt;/a&gt;previewHtml&lt;/h4&gt;
&lt;p&gt;Returns the FileViewer-provided Preview HTML for a given URL&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$.telligent.evolution.media.previewHtml(url, 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;width&lt;/code&gt;: max viewer width&lt;/li&gt;
&lt;li&gt;&lt;code&gt;height&lt;/code&gt;: max viewer height&lt;/li&gt;
&lt;li&gt;&lt;code&gt;success&lt;/code&gt;: callback function which is invoked when the preview html is returned from an ajax request. The function is passed the response.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;error&lt;/code&gt;: callback function which is invoked if the preview html could not be generated&lt;/li&gt;
&lt;/ul&gt;
&lt;h4&gt;&lt;a id="viewHtml" name="viewHtml"&gt;&lt;/a&gt;viewHtml&lt;/h4&gt;
&lt;p&gt;Returns the FileViewer-provided View HTML for a given URL&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;$.telligent.evolution.media.viewHtml(url, 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;width&lt;/code&gt;: max viewer width&lt;/li&gt;
&lt;li&gt;&lt;code&gt;height&lt;/code&gt;: max viewer height&lt;/li&gt;
&lt;li&gt;&lt;code&gt;success&lt;/code&gt;: callback function which is invoked when the view html is returned from an ajax request. The function is passed the response.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;error&lt;/code&gt;: callback function which is invoked if the view html could not be generated&lt;/li&gt;
&lt;/ul&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>