[x3d-public] loading DOM VRML Script. Cobweb enhancement?

yottzumm at gmail.com yottzumm at gmail.com
Wed Nov 30 22:02:05 PST 2016

It appears that Cobweb is fouled up with DOM loading of scripts, even with the additional name value pair.  See gears.x3d/gears.json and load DOM through importDocument.  And independent test would help.  I am not sure which of my X3DCanvases gets loaded first and I am using absolute indexing, so it could be the XML loaded one that is failing.  Basically, we need a good way to load scripts coming in through JSON I think, and the only real way I know how to do it is eval or cobweb with JSON to XML conversion and VRMLscript.  If Cobweb could use the VRMLscript from JSON or DOM, that might be ideal.

This is with cobweb 2.4.


Sent from Mail for Windows 10

From: yottzumm at gmail.com
Sent: Thursday, December 1, 2016 12:32 AM
To: Andreas Plesch; Don Brutzman; Roy Walmsley
Subject: FW: loading X3D DOM. Latest Cobweb techniques?

Would it be possible to get a name/value of  

"@type" : "application/x-vrmlscript"

On the Script tag in X3D JSON?  I will do some testing here first to see if it will help.


From: yottzumm at gmail.com
Sent: Thursday, December 1, 2016 12:24 AM
To: Andreas Plesch
Subject: RE: loading X3D DOM. Latest Cobweb techniques?

One thing I noticed once I got both DOM and XML views loaded, was that I think the DOM VRML script tag was disabled, but the XML one worked.  Was there some attribute to add to the Script tag to make it work?  Can I add it in both XML and DOM?  Thanks, John  I will start email search.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20161201/cc42e9b5/attachment.html>

More information about the x3d-public mailing list