<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;}
/* 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;}
p
        {mso-style-priority:99;
        margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
.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>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.</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 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 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.</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 actually learn the features of JavaScript <span style='font-family:"Segoe UI Emoji",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 <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:highaspirations@hotmail.com">doug sanden</a><br><b>Sent: </b>Thursday, June 9, 2016 11:28 AM<br><b>To: </b><a href="mailto:x3d-public@web3d.org">'X3D Graphics public mailing list'</a><br><b>Subject: </b>Re: [x3d-public] [x3d] V4.0 Open discussion/workshop on X3D HTMLintegration > 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 style='background:white'><span style='font-family:"Calibri",sans-serif;color:black'>creative strategy example > protos<o:p></o:p></span></p><p style='background:white'><span style='font-family:"Calibri",sans-serif;color:black'>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:<o:p></o:p></span></p><p style='background:white'><span style='font-family:"Calibri",sans-serif;color:black'>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<o:p></o:p></span></p><p style='background:white'><span style='font-family:"Calibri",sans-serif;color:black'><o:p> </o:p></span></p><p style='background:white'><span style='font-family:"Calibri",sans-serif;color:black'>other domains > adware<o:p></o:p></span></p><p style='background:white'><span style='font-family:"Calibri",sans-serif;color:black'>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?<o:p></o:p></span></p><p style='background:white'><span style='font-family:"Calibri",sans-serif;color:black'>so an adware solution to the script part of proto would be an element solution from another domain.<o:p></o:p></span></p><p style='background:white'><span style='font-family:"Calibri",sans-serif;color:black'><o:p> </o:p></span></p><p style='background:white'><span style='font-family:"Calibri",sans-serif;color:black'>You would write that into the table and keep going.<o:p></o:p></span></p><p style='background:white'><span style='font-family:"Calibri",sans-serif;color:black'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'><o:p> </o:p></span></p></div></body></html>