1 Reply Latest reply on Jan 1, 2013 11:43 PM by hadas67

    Using linked JavaScript-files in HTM-Widgets?

      Hi there.


      I'm working with JavaScript in HTML-Widgets and have this problem:


      If I embed the following sequence in my HTML widget

         <script type="text/javascript">

              function palIndexTableSetupLinks() {...}



      it works fine.


      If I want to reuse the function and transfer it into a file on another server, i.e.


         <script src="http:/domain.com/.../file.js" type="text/javascript"></script>

          <script type="text/javascript">



      it works too, but only if I close the widget editor and do NOT publish the modified space...


      But: as soon I confirm to publish the space the function palIndexTableSetupLinks(); will not be executed.

      After publishing, the script-tags above are visible in i.e. FireBug during runtime...


      Any ideas?