3 Replies Latest reply: Jun 18, 2013 3:39 AM by Alexander Karlsson RSS

    include external JavaScript libraries in Extension

    Steffen Prendke

      Hi,

      I have some problems to include JavaScript libraries in my QlikView Extension.

       

      /*

      *Start of my Script.js

      /*

      var extensionName = "MY_EXTENSION";

      var extensionPath = Qva.Remote + "?public=only&name=Extensions/" + extensionName + "/";

      function ExtensionStart() {

          Qv.AddExtension(extensionName,

              function() {

                  //logic code goes in here

                  /*

                  *     ...

                  */

                }

      }

       

      function Init_JS_Frameworks() {

          var files = [];

          files.push(extensionPath + "Scripts/jquery-1.9.1.min.js");

          files.push(extensionPath + "Scripts/jquery-ui-1.10.2.custom.min.js");

          files.push(extensionPath + "Scripts/jQueryFileDownloadPluginv1.4.0.js");

          Qv.LoadExtensionScripts(files, ExtensionStart);

      }

       

      Init_JS_Frameworks();

       

      /*

      *End of my Script.js

      */

      Is this methodic right, or what error can I have made, the Path of the files are correct. Please give me some tips.

       

      Thanks