9 Replies Latest reply on Sep 26, 2014 12:11 AM by ztenerowicz

    How to include a javascript file from relative path to a html view?

    ztenerowicz

      I'm creating an External Storage Provider. In my definition.json I configured

      "configInstance":"%serviceURL%/storage/configuration.html",

       

      and the configuration.html page is loaded when I want to edit storage instance settings.

       

      But the configuration.html file is proxied and when I try to load a Javascript file from a relative path with

      <script src="main.js"></script>

       

      It is not loaded, but a 404 response is returned from the Jive proxy that serves the contents of configuration.html.

         

      Is there a way to have javascript in files instead of putting it inside the html page?

       

      Searching the developer portal didn't help. In apps including JS files just works.