<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></head><body ><div>This is indeed a missing feature. One way is to define a new function like "require" to import external JavaScript libraries:</div><div><br></div><div>require ("http://example.com/script.js", "../script.js");</div><div><br></div><div>For consistency it should can handle multiple URLs.</div><div><br></div><div><br></div><div><div style="font-size:9px;color:#575757">Von Samsung Mobile gesendet</div></div><br><br><div>-------- Ursprüngliche Nachricht --------</div><div>Von: Don Brutzman <brutzman@nps.edu> </div><div>Datum:04.12.2014  09:23  (GMT+01:00) </div><div>An: X3D Graphics public mailing list <x3d-public@web3d.org>, x3dom-developer  mlist <x3dom-developers@lists.sourceforge.net> </div><div>Betreff: [X3D-Public] Fwd: [X3D] Comment: need ability to import separate   Javascript source library into embedded X3D Script code </div><div><br></div>Comments on this issue welcome.  Seems like a big omission if indeed there is no way for an author to load an external Javascript library into a Script node internal to an X3D scene.<br><br><br>-------- Forwarded Message --------<br>Subject: [X3D] Comment on Specification by "brutzman"<br>Date: Wed, 3 Dec 2014 09:14:09 -0800<br>From: Spec Feedback <spec-comment@web3d.org><br>To: x3d@web3d.org<br><br>Comment on 19777-1: JavaScript Binding - V3.3<br>4 Concepts<br>http://www.web3d.org/documents/specifications/19777-1/V3.0/Part1/concepts.html<br><br>-----------------<br>No method currently exists to import source for an external Javascript<br>library into an embedded X3D Script node.<br><br>The ECMAScript specification reserves keywords "import export" but does not<br>define functionality.<br>http://www.web3d.org/specifications/Ecma-262.pdf<br><br>HTML supports multiple javascript libraries in the web page via the  element.<br>http://www.w3.org/TR/html401/interact/scripts.html<br>http://www.w3.org/TR/html5/scripting-1.html<br><br>X3D needs a similar mechanism where an X3D Script author can use/reuse an<br>external Javascript library.<br>-----------------<br><br>Submitted on Wednesday, 2014,  December 3 - 9:14am<br>by brutzman (brutzman )<br>IP: 205.155.65.226<br><br>See: http://www.web3d.org/node/1694/submission/371<br><br><br>_______________________________________________<br>X3D mailing list<br>X3D@web3d.org<br>http://web3d.org/mailman/listinfo/x3d_web3d.org<br><br><br>all the best, Don<br>-- <br>Don Brutzman  Naval Postgraduate School, Code USW/Br       brutzman@nps.edu<br>Watkins 270,  MOVES Institute, Monterey CA 93943-5000 USA   +1.831.656.2149<br>X3D graphics, virtual worlds, navy robotics http://faculty.nps.edu/brutzman<br><br><br><br>_______________________________________________<br>X3D-Public mailing list<br>X3D-Public@web3d.org<br>http://web3d.org/mailman/listinfo/x3d-public_web3d.org<br></body>