[x3d-public] loading DOM VRML Script. Cobweb enhancement?
Andreas Plesch
andreasplesch at gmail.com
Thu Dec 1 03:57:32 PST 2016
I did not look closely but try a .xhtml page if you did not sofar.
The script tag gets turned into a DOM node in a different way on . xhtml.
I needed additional trickery, preprocessing to get script to work on html
with cobweb_dom .
Andreas
On Dec 1, 2016 1:02 AM, <yottzumm at gmail.com> wrote:
> 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.
>
>
>
> John
>
>
>
> Sent from Mail <https://go.microsoft.com/fwlink/?LinkId=550986> for
> Windows 10
>
>
>
> *From: *yottzumm at gmail.com
> *Sent: *Thursday, December 1, 2016 12:32 AM
> *To: *Andreas Plesch <andreasplesch at gmail.com>; Don Brutzman
> <brutzman at nps.edu>; Roy Walmsley <roy.walmsley at ntlworld.com>
> *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.
>
>
>
> John
>
>
>
> *From: *yottzumm at gmail.com
> *Sent: *Thursday, December 1, 2016 12:24 AM
> *To: *Andreas Plesch <andreasplesch at gmail.com>
> *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/7d5f601e/attachment.html>
More information about the x3d-public
mailing list