PV.Pat File Manager
Kernel Version: Linux webm010.cluster127.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64
Domains: CANT READ named.confSites Server IP: 10.127.20.10 [Bing Search] [Zone-H]
| Path : /home/s/p/t/sptporgazz/www/backoffice/modules/tinymce/docs/api/ |
| Current File : /home/s/p/t/sptporgazz/www/backoffice/modules/tinymce/docs/api/class_tinymce.dom.ScriptLoader.html |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
<head>
<title>Class: tinymce.dom.ScriptLoader</title>
<meta name="generator" content="MoxieDoc" />
<link rel="stylesheet" type="text/css" href="css/reset.css" />
<link rel="stylesheet" type="text/css" href="css/grids.css" />
<link rel="stylesheet" type="text/css" href="css/general.css" />
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script type="text/javascript">
google.load("jquery", "1.3");
</script>
<script type="text/javascript" src="js/jquery.treeview.min.js"></script>
<script type="text/javascript" src="js/general.js"></script>
</head>
<body>
<div class="classDetailsContent">
<h1>tinymce.dom.ScriptLoader</h1>
<table class="classDetails">
<tr>
<td class="first">Namespace</td>
<td class="last">tinymce.dom</td>
</tr>
<tr>
<td class="first">Class</td>
<td class="last">ScriptLoader</td>
</tr>
</table>
<div class="classDescription">This class handles asynchronous/synchronous loading of JavaScript files it will execute callbacks when
various items gets loaded. This class is useful to</div>
<div class="summaryLists">
<h2>Public Methods</h2>
<table class="Methods summary">
<thead>
<tr>
<th>Method</th>
<th>Defined By</th>
</tr>
</thead>
<tbody>
<tr>
<td class="first">
<div>
<a class="memberName" href="class_tinymce.dom.ScriptLoader.html#ScriptLoader">ScriptLoader</a>(s:Object)</div>
<div class="summary">Constructs a new script loaded instance.</div>
</td>
<td class="last">ScriptLoader</td>
</tr>
<tr class="even">
<td class="first">
<div>
<a class="memberName" href="class_tinymce.dom.ScriptLoader.html#add">add</a>(u:String, cb:function, s:Object, pr:Boolean):object</div>
<div class="summary">Adds a specific script to the load queue of the script loader.</div>
</td>
<td class="last">ScriptLoader</td>
</tr>
<tr>
<td class="first">
<div>
<a class="memberName" href="class_tinymce.dom.ScriptLoader.html#eval">eval</a>(Script:string):void</div>
<div class="summary">Evaluates the specified string inside the global namespace/window scope.</div>
</td>
<td class="last">ScriptLoader</td>
</tr>
<tr class="even">
<td class="first">
<div>
<a class="memberName" href="class_tinymce.dom.ScriptLoader.html#isDone">isDone</a>(u:String):void</div>
<div class="summary">Returns true/false if a script has been loaded or not.</div>
</td>
<td class="last">ScriptLoader</td>
</tr>
<tr>
<td class="first">
<div>
<a class="memberName" href="class_tinymce.dom.ScriptLoader.html#load">load</a>(u:String, cb:function, s:Object):void</div>
<div class="summary">Loads a specific script directly without adding it to the load queue.</div>
</td>
<td class="last">ScriptLoader</td>
</tr>
<tr class="even">
<td class="first">
<div>
<a class="memberName" href="class_tinymce.dom.ScriptLoader.html#loadQueue">loadQueue</a>(cb:function, s:Object):void</div>
<div class="summary">Starts the loading of the queue.</div>
</td>
<td class="last">ScriptLoader</td>
</tr>
<tr>
<td class="first">
<div>
<a class="memberName" href="class_tinymce.dom.ScriptLoader.html#loadScript">loadScript</a>(u:string, cb:function):void</div>
<div class="summary">
<span class="static">[static] </span>Loads the specified script without adding it to any load queue.</div>
</td>
<td class="last">ScriptLoader</td>
</tr>
<tr class="even">
<td class="first">
<div>
<a class="memberName" href="class_tinymce.dom.ScriptLoader.html#loadScripts">loadScripts</a>(sc:Array, cb:function, s:Object):void</div>
<div class="summary">Loads the specified queue of files and executes the callback ones they are loaded.</div>
</td>
<td class="last">ScriptLoader</td>
</tr>
<tr>
<td class="first">
<div>
<a class="memberName" href="class_tinymce.dom.ScriptLoader.html#markDone">markDone</a>(u:string):void</div>
<div class="summary">Marks a specific script to be loaded.</div>
</td>
<td class="last">ScriptLoader</td>
</tr>
</tbody>
</table>
</div>
<div class="detailsList">
<div class="details">
<h2>Method details</h2>
<div class="memberDetails" id="ScriptLoader">
<h3>ScriptLoader<span class="memberType">constructor</span>
</h3>
<code class="syntax">public
function ScriptLoader(s:Object)</code>
<div class="memberDescription">Constructs a new script loaded instance. Check the Wiki for more detailed information for this method.
</div>
<h4>Parameters</h4>
<table class="params">
<tr>
<td class="first">s:Object</td>
<td class="last">Optional settings object for the ScriptLoaded.</td>
</tr>
</table>
</div>
<div class="memberDetails" id="add">
<h3>add<span class="memberType">method</span>
</h3>
<code class="syntax">public
function add(u:String, cb:function, s:Object, pr:Boolean):object</code>
<div class="memberDescription">Adds a specific script to the load queue of the script loader.
</div>
<h4>Parameters</h4>
<table class="params">
<tr>
<td class="first">u:String</td>
<td class="last">Absolute URL to script to add.</td>
</tr>
<tr>
<td class="first">cb:function</td>
<td class="last">Optional callback function to execute ones this script gets loaded.</td>
</tr>
<tr>
<td class="first">s:Object</td>
<td class="last">Optional scope to execute callback in.</td>
</tr>
<tr>
<td class="first">pr:Boolean</td>
<td class="last">Optional state to add to top or bottom of load queue. Defaults to bottom.</td>
</tr>
</table>
<h4>Returns</h4>
<div class="returns">object - Load queue object contains, state, url and callback.</div>
</div>
<div class="memberDetails" id="eval">
<h3>eval<span class="memberType">method</span>
</h3>
<code class="syntax">public
function eval(Script:string):void</code>
<div class="memberDescription">Evaluates the specified string inside the global namespace/window scope.
</div>
<h4>Parameters</h4>
<table class="params">
<tr>
<td class="first">Script:string</td>
<td class="last">contents to evaluate.</td>
</tr>
</table>
</div>
<div class="memberDetails" id="isDone">
<h3>isDone<span class="memberType">method</span>
</h3>
<code class="syntax">public
function isDone(u:String):void</code>
<div class="memberDescription">Returns true/false if a script has been loaded or not.
</div>
<h4>Parameters</h4>
<table class="params">
<tr>
<td class="first">u:String</td>
<td class="last">URL to check for.</td>
</tr>
</table>
</div>
<div class="memberDetails" id="load">
<h3>load<span class="memberType">method</span>
</h3>
<code class="syntax">public
function load(u:String, cb:function, s:Object):void</code>
<div class="memberDescription">Loads a specific script directly without adding it to the load queue.
</div>
<h4>Parameters</h4>
<table class="params">
<tr>
<td class="first">u:String</td>
<td class="last">Absolute URL to script to add.</td>
</tr>
<tr>
<td class="first">cb:function</td>
<td class="last">Optional callback function to execute ones this script gets loaded.</td>
</tr>
<tr>
<td class="first">s:Object</td>
<td class="last">Optional scope to execute callback in.</td>
</tr>
</table>
</div>
<div class="memberDetails" id="loadQueue">
<h3>loadQueue<span class="memberType">method</span>
</h3>
<code class="syntax">public
function loadQueue(cb:function, s:Object):void</code>
<div class="memberDescription">Starts the loading of the queue.
</div>
<h4>Parameters</h4>
<table class="params">
<tr>
<td class="first">cb:function</td>
<td class="last">Optional callback to execute when all queued items are loaded.</td>
</tr>
<tr>
<td class="first">s:Object</td>
<td class="last">Optional scope to execute the callback in.</td>
</tr>
</table>
</div>
<div class="memberDetails" id="loadScript">
<h3>loadScript<span class="memberType">method</span>
</h3>
<code class="syntax">public static
function loadScript(u:string, cb:function):void</code>
<div class="memberDescription">Loads the specified script without adding it to any load queue.
</div>
<h4>Parameters</h4>
<table class="params">
<tr>
<td class="first">u:string</td>
<td class="last">URL to dynamically load.</td>
</tr>
<tr>
<td class="first">cb:function</td>
<td class="last">Callback function to executed on load.</td>
</tr>
</table>
</div>
<div class="memberDetails" id="loadScripts">
<h3>loadScripts<span class="memberType">method</span>
</h3>
<code class="syntax">public
function loadScripts(sc:Array, cb:function, s:Object):void</code>
<div class="memberDescription">Loads the specified queue of files and executes the callback ones they are loaded.
This method is generally not used outside this class but it might be useful in some scenarios.
</div>
<h4>Parameters</h4>
<table class="params">
<tr>
<td class="first">sc:Array</td>
<td class="last">Array of queue items to load.</td>
</tr>
<tr>
<td class="first">cb:function</td>
<td class="last">Optional callback to execute ones all items are loaded.</td>
</tr>
<tr>
<td class="first">s:Object</td>
<td class="last">Optional scope to execute callback in.</td>
</tr>
</table>
</div>
<div class="memberDetails last" id="markDone">
<h3>markDone<span class="memberType">method</span>
</h3>
<code class="syntax">public
function markDone(u:string):void</code>
<div class="memberDescription">Marks a specific script to be loaded. This can be useful if a script got loaded outside
the script loader or to skip it from loading some script.
</div>
<h4>Parameters</h4>
<table class="params">
<tr>
<td class="first">u:string</td>
<td class="last">Absolute URL to the script to mark as loaded.</td>
</tr>
</table>
</div>
</div>
</div>
</div>
</body>
</html>