[x3d-public] [x3d] V4.0 Open discussion/workshop on X3D HTMLintegration > brainstorming > protos

John Carlson yottzumm at gmail.com
Fri Jun 10 08:26:31 PDT 2016


You can run-time instance Scripts by @DEFfing  each one and providing a prototype expander which renames each Script.  After that, once you have a unique name, you can generate JavaScript from the Script in a JavaScript namespace or object.  You can already do this with “require” I believe.   All we need to do is do what require does for each instance of the script.

I have done this with my post prototype expander script, but it doesn’t handle the X3D event stuff yet.  It has it’s own eventing mechanism.

I think it’s doable to have separate instances of JavaScript.  Scripts can be run-time instanced.  I didn’t say it was easy, and my code isn’t quite there yet (It might be if I knew X3D).  Hence my cry for help several months ago.

We have to be willing to separate ourselves from our comfort zones and actually learn the features of JavaScript 😊.

John

Sent from Mail for Windows 10

From: doug sanden
Sent: Thursday, June 9, 2016 11:28 AM
To: 'X3D Graphics public mailing list'
Subject: Re: [x3d-public] [x3d] V4.0 Open discussion/workshop on X3D HTMLintegration > brainstorming > protos

creative strategy example > protos
when it comes to protos, an element of that was something about Script. If you can't have a Script node then what's the point of protos. But html does have scirpts. Am I right to break that down into:
e1 scripts can't be run-time instanced ie if you have one copy of a script, you can't make another copy at runtime with the same name

other domains > adware
I see lots of advertisements popping up in webpages. I suspect they have their own scripts and content. Is it possible to instance 2 ads of the same type on the same page? If so, how do they do it, without confusing the scripts?
so an adware solution to the script part of proto would be an element solution from another domain.

You would write that into the table and keep going.


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


More information about the x3d-public mailing list