<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"Segoe UI Symbol";
        panose-1:2 11 5 2 4 2 4 2 2 3;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style></head><body lang=EN-US link=blue vlink="#954F72"><div class=WordSection1><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I basically find it very hard to read, thus these long emails full of good stuff are almost making me cry.  I can’t read the spec or long emails, so we’ll have to keep it short.  If you look at my previous email, there is code generated from the script and code generated from the routes.  I need to know what to do to implement routes which interact with the DOM for X3DOM  (I probably don’t need to do anything for cobweb, since it already works with Scripts and Protos) and how to manipulate the script code to make it work in the X3D way.  A series of steps to get from point A (no scripts) to point B (full X3D scripts, or something near it) would be nice.  We are already handling protos for the most part in the proto expander separately from scripts, so people can start working on my Script code separately from protos.  My script code is here:</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><a href="https://github.com/coderextreme/X3DJSONLD/blob/master/Script.js">https://github.com/coderextreme/X3DJSONLD/blob/master/Script.js</a><o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>How to use the script code (sort of) is here:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><a href="https://github.com/coderextreme/X3DJSONLD/blob/master/PPP.js">https://github.com/coderextreme/X3DJSONLD/blob/master/PPP.js</a><o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>The API interface is fairly simple, you send it an X3D JSON object and get back the script code and the route code which you eval to bring into JavaScript.  The X3D JSON object shouldn’t have prototypes in it.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>We may have to do something with the global scope so it won’t get wiped out for each file (check it for undefined).</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>John</p><p class=MsoNormal>Sent from <a href="https://go.microsoft.com/fwlink/?LinkId=550986">Mail</a> for Windows 10</p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'><o:p> </o:p></span></p><div style='mso-element:para-border-div;border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal style='border:none;padding:0in'><b>From: </b><a href="mailto:joedwil@earthlink.net">Joe D Williams</a><br><b>Sent: </b>Friday, June 10, 2016 10:34 AM<br><b>To: </b><a href="mailto:highaspirations@hotmail.com">doug sanden</a>; <a href="mailto:x3d-public@web3d.org">x3d-public@web3d.org</a>; <a href="mailto:x3d@web3d.org">x3d@web3d.org</a>; <a href="mailto:yottzumm@gmail.com">John Carlson</a><br><b>Subject: </b>Re: [x3d] [x3d-public] V4.0 Open discussion/workshopon X3DHTMLintegration > brainstorming > protos</p></div><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'><o:p> </o:p></span></p><p class=MsoNormal>>  (It might be if I knew X3D).  Hence my cry for help several months </p><p class=MsoNormal>> ago.</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>OK John, we are here now, and want to help. Can you tell me again now </p><p class=MsoNormal>what detail it is that you want to know about X3D?</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Thanks and Best,</p><p class=MsoNormal>Joe</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>----- Original Message ----- </p><p class=MsoNormal>From: "John Carlson" <yottzumm@gmail.com></p><p class=MsoNormal>To: "doug sanden" <highaspirations@hotmail.com>; </p><p class=MsoNormal><x3d-public@web3d.org>; <x3d@web3d.org></p><p class=MsoNormal>Sent: Friday, June 10, 2016 8:26 AM</p><p class=MsoNormal>Subject: Re: [x3d] [x3d-public] V4.0 Open discussion/workshopon X3D </p><p class=MsoNormal>HTMLintegration > brainstorming > protos</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>You can run-time instance Scripts by @DEFfing  each one and providing </p><p class=MsoNormal>a prototype expander which renames each Script.  After that, once you </p><p class=MsoNormal>have a unique name, you can generate JavaScript from the Script in a </p><p class=MsoNormal>JavaScript namespace or object.  You can already do this with </p><p class=MsoNormal> “require” I believe.   All we need to do is do what require does for </p><p class=MsoNormal>each instance of the script.</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I have done this with my post prototype expander script, but it doesn’t </p><p class=MsoNormal>handle the X3D event stuff yet.  It has it’s own eventing mechanism.</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I think it’s doable to have separate instances of JavaScript.  Scripts </p><p class=MsoNormal>can be run-time instanced.  I didn’t say it was easy, and my code isn’t </p><p class=MsoNormal>quite there yet (It might be if I knew X3D).  Hence my cry for help </p><p class=MsoNormal>several months ago.</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>We have to be willing to separate ourselves from our comfort zones and </p><p class=MsoNormal>actually learn the features of JavaScript <span style='font-family:"Segoe UI Symbol",sans-serif'>😊</span>.</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>John</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Sent from Mail for Windows 10</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>From: doug sanden</p><p class=MsoNormal>Sent: Thursday, June 9, 2016 11:28 AM</p><p class=MsoNormal>To: 'X3D Graphics public mailing list'</p><p class=MsoNormal>Subject: Re: [x3d-public] [x3d] V4.0 Open discussion/workshop on X3D </p><p class=MsoNormal>HTMLintegration > brainstorming > protos</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>creative strategy example > protos</p><p class=MsoNormal>when it comes to protos, an element of that was something about </p><p class=MsoNormal>Script. If you can't have a Script node then what's the point of </p><p class=MsoNormal>protos. But html does have scirpts. Am I right to break that down </p><p class=MsoNormal>into:</p><p class=MsoNormal>e1 scripts can't be run-time instanced ie if you have one copy of a </p><p class=MsoNormal>script, you can't make another copy at runtime with the same name</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>other domains > adware</p><p class=MsoNormal>I see lots of advertisements popping up in webpages. I suspect they </p><p class=MsoNormal>have their own scripts and content. Is it possible to instance 2 ads </p><p class=MsoNormal>of the same type on the same page? If so, how do they do it, without </p><p class=MsoNormal>confusing the scripts?</p><p class=MsoNormal>so an adware solution to the script part of proto would be an element </p><p class=MsoNormal>solution from another domain.</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>You would write that into the table and keep going.</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>--------------------------------------------------------------------------------</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>> _______________________________________________</p><p class=MsoNormal>> x3d mailing list</p><p class=MsoNormal>> x3d@web3d.org</p><p class=MsoNormal>> http://web3d.org/mailman/listinfo/x3d_web3d.org</p><p class=MsoNormal>> </p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>