<div dir="auto"><div>Leonard,<div dir="auto"><br></div><div dir="auto">Do you have an actual example that cannot be made to work in Cobweb + Cobweb_dom? It helps to deal with realistic examples.</div><div dir="auto"><br></div><div dir="auto">Is the difficulty with writing up how Cobweb or X3DJSONLD works?</div><div dir="auto"><br></div><div dir="auto">You can visit my page @ <a href="https://coderextreme.net/X3DJSONLD/">https://coderextreme.net/X3DJSONLD/</a> to see how my script + route -> script + event handlers works with X3DOM, (there by are several evals in loaderJQuery.js) but I believe I've posted the results here. I guess I need to post before and after scenarios.</div><div dir="auto"><br></div><div dir="auto">Thanks,</div><div dir="auto"><br></div><div dir="auto">John</div><br><div class="gmail_extra"><br><div class="gmail_quote">On Aug 10, 2017 9:31 PM, "Leonard Daly" <<a href="mailto:Leonard.Daly@realism.com">Leonard.Daly@realism.com</a>> wrote:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF"><div class="elided-text">
<div class="m_-433623661808398190moz-cite-prefix">On 8/10/2017 5:17 PM, John Carlson
wrote:<br>
</div>
<blockquote type="cite">
<div class="m_-433623661808398190WordSection1">
<p class="MsoNormal">Leonard wrote:<u></u><u></u></p>
<p class="MsoNormal" style="margin-bottom:12.0pt">>and node
name collisions (i.e., Script).<u></u><u></u></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().<u></u><u></u></p>
<p class="MsoNormal" style="margin-bottom:12.0pt">Cobweb of
course, already handles this, so quit bellyaching.</p>
</div>
</blockquote>
<br></div>
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.<div class="quoted-text"><br>
<br>
<br>
<div class="m_-433623661808398190moz-signature">-- <br>
<font class="m_-433623661808398190tahoma,arial,helvetica m_-433623661808398190san m_-433623661808398190serif" 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>
</div></div>
</blockquote></div><br></div></div></div>