3 Replies Latest reply on Jun 13, 2016 10:18 AM by beverly

    Web Viewer JS script adding comment //

    f.i.sciences

      I'm trying to make a JS script to work inside a Web Viewer.

      All is fine except comment doesn't work (//) like in normal web browser.

      "data:text/html,<html><body>

      <div id=\"container\"></div>

       

      <! // Load the JS script in memory.>

        <script type=\"text/javascript\">" & ObtenirAttributObjetModele ( "three.min.js" ; "content" ) & "</script>

       

      <! // Create our local function to use previously loads script.>

      <script type=\"text/javascript\">

        var renderer, scene, camera, mesh;

       

        function init(){

           // MY COMMENT PRODUCED ERROR 'END OF FILE'!!! 

      }

       

      </script>

      </body></html>"

      Plancher_Bois_Franc_2000__SRV-WEB_.png

      Any clue to use comment there?