<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">On 8/10/2017 5:17 PM, John Carlson
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:598cf78b.145f240a.105ea.6790@mx.google.com">
<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;}
.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>
<div class="WordSection1">
<p class="MsoNormal">Leonard wrote:<o:p></o:p></p>
<p class="MsoNormal" style="margin-bottom:12.0pt">>and node
name collisions (i.e., Script).<o:p></o:p></p>
<p class="MsoNormal" style="margin-bottom:12.0pt">There has been
quite a bit of progress with this and X3DJSONLD and X3DOM.
It’s been under the covers because I have not advertised it
much. I have several scripts running, but not the full
complement of my examples. It does not run the X3D event
model yet, except for initialize().<o:p></o:p></p>
<p class="MsoNormal" style="margin-bottom:12.0pt">Cobweb of
course, already handles this, so quit bellyaching.</p>
</div>
</blockquote>
<br>
Cobweb even with Andreas' DOM interface extensions does not
integrate with the DOM regarding Scripts. A full integration would
allow the following:<br>
<br>
X3D Script function called 'foo'<br>
HTML script function called 'bar'<br>
<br>
In the body of bar, I should be able to redefine 'foo'. It is (in a
fully integrated system) available as window.foo. Similarly for
inside of 'foo' to change 'bar'.<br>
<br>
<tt>function bar(event, time) {</tt><tt><br>
</tt><tt> window.foo = bar; // I would (perhaps)
settle for window.x3d.foo = bar;</tt><tt><br>
</tt><tt>}</tt><tt><br>
</tt><br>
and<br>
<br>
<tt><Script ...></tt><tt> <!-- X3D Script node --><br>
</tt><tt> function foo (event, time) {</tt><tt><br>
</tt><tt> window.bar = foo;</tt><tt><br>
</tt><tt> }</tt><tt><br>
</tt><tt></script></tt><tt><br>
</tt><br>
I should be able to construct an object with 'foo' as a method.
E.g.,<br>
<br>
<tt>var globalVar = {};</tt><tt><br>
</tt><tt>globalVar.x3d = foo;</tt><tt><br>
</tt><tt><br>
</tt><tt><tt>// should call the X3D script passing it a reference to
the current value of 'event' and 'time'.<br>
</tt>globalVar.x3d(event, time); </tt><tt><br>
</tt><br>
<br>
Inside 'foo' I should be able to access any DOM element to get it's
current state or even establish an event listener.<br>
<br>
<br>
I know there are some things that Cobweb can do, but there has been
no discussions in the WG for the language that would be necessary to
ensure HTML/DOM/X3D interaction like I described above.<br>
<br>
Unrolling scripts on the server (or at least not in the runtime of
the browser) is all fine and good, but again there has been no
discussion in the WG as to how to even approach writing that up.<br>
<br>
I will be happy to be (relatively) quiet on these points if someone
can show me working examples and proposed text to make this work.<br>
<br>
<br>
<div class="moz-signature">-- <br>
<font class="tahoma,arial,helvetica san serif" color="#333366">
<font size="+1"><b>Leonard Daly</b></font><br>
3D Systems & Cloud Consultant<br>
LA ACM SIGGRAPH Chair<br>
President, Daly Realism - <i>Creating the Future</i>
</font></div>
</body>
</html>