AnsweredAssumed Answered

Web Viewer JS script adding comment //

Question asked by f.i.sciences on Jun 13, 2016
Latest reply on Jun 13, 2016 by beverly

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?

Outcomes