2 Replies Latest reply: May 23, 2012 2:57 AM by Abdur Razak Amod RSS

    Javascript in extension

      Hi,

       

      I am trying to create an extension using the ffg code:

       

      Qva.AddExtension('CVL', function() {

         // Set the HTML

         var html = "<h1>Hello World</h1><script src=\"http://widgets.macroaxis.com/widgets/url.jsp?t=2\"></script>";

         this.Element.innerHTML = html;

      },true);

       

      The "Hello World" shows but the javascript never gets exected even if I keep it by itself it does not work:

       

      Qva.AddExtension('CVL', function() {

         // Set the HTML

         var html = "<script src=\"http://widgets.macroaxis.com/widgets/url.jsp?t=2\"></script>";

         this.Element.innerHTML = html;

      },true);

       

       

      Kind Regards

      Razak