[X3D-Public] Fwd: [X3D] Comment: need ability to import separate Javascript source library into embedded X3D Script code

Holger Seelig holger.seelig at yahoo.de
Sat Dec 6 09:59:31 PST 2014

This is indeed a missing feature. One way is to define a new function like "require" to import external JavaScript libraries:

require ("http://example.com/script.js", "../script.js");

For consistency it should can handle multiple URLs.

Von Samsung Mobile gesendet

<div>-------- Ursprüngliche Nachricht --------</div><div>Von: Don Brutzman <brutzman at nps.edu> </div><div>Datum:04.12.2014  09:23  (GMT+01:00) </div><div>An: X3D Graphics public mailing list <x3d-public at web3d.org>, x3dom-developer	mlist <x3dom-developers at 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>
</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.

-------- Forwarded Message --------
Subject: [X3D] Comment on Specification by "brutzman"
Date: Wed, 3 Dec 2014 09:14:09 -0800
From: Spec Feedback <spec-comment at web3d.org>
To: x3d at web3d.org

Comment on 19777-1: JavaScript Binding - V3.3
4 Concepts

No method currently exists to import source for an external Javascript
library into an embedded X3D Script node.

The ECMAScript specification reserves keywords "import export" but does not
define functionality.

HTML supports multiple javascript libraries in the web page via the  element.

X3D needs a similar mechanism where an X3D Script author can use/reuse an
external Javascript library.

Submitted on Wednesday, 2014,  December 3 - 9:14am
by brutzman (brutzman )

See: http://www.web3d.org/node/1694/submission/371

X3D mailing list
X3D at web3d.org

all the best, Don
Don Brutzman  Naval Postgraduate School, Code USW/Br       brutzman at nps.edu
Watkins 270,  MOVES Institute, Monterey CA 93943-5000 USA   +1.831.656.2149
X3D graphics, virtual worlds, navy robotics http://faculty.nps.edu/brutzman

X3D-Public mailing list
X3D-Public at web3d.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20141206/f4159b02/attachment.html>

More information about the X3D-Public mailing list