Example #1
0
 private void RegisterJsInclude(FileOrder.Js priority, string filePath)
 {
     _phDependencies.Controls.Add(new JsInclude
     {
         Priority = (int)priority,
         FilePath = filePath
     });
 }
 /// <summary>
 /// Requests that a JavaScript file be registered on the client browser
 /// </summary>
 /// <param name="page">The current page. Used to get a reference to the client resource loader.</param>
 /// <param name="filePath">The relative file path to the JavaScript resource.</param>
 /// <param name="priority">The relative priority in which the file should be loaded.</param>
 /// <param name="provider">The name of the provider responsible for rendering the script output.</param>
 public static void RegisterScript(Page page, string filePath, FileOrder.Js priority, string provider)
 {
     RegisterScript(page, filePath, (int)priority, provider);
 }
Example #3
0
 /// <summary>
 /// Requests that a JavaScript file be registered on the client browser.
 /// </summary>
 /// <param name="filePath">The relative file path to the JavaScript resource.</param>
 /// <param name="priority">The relative priority in which the file should be loaded.</param>
 public void DnnJsInclude(string filePath, FileOrder.Js priority)
 {
     ClientResourceManager.RegisterScript(this.DnnPage, filePath, priority);
 }