<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Here’s a good start on porting Scripts from X3D to X3DOM:<div class=""><br class=""></div><div class=""><a href="https://github.com/coderextreme/X3DJSONLD/blob/master/Script.js" class="">https://github.com/coderextreme/X3DJSONLD/blob/master/Script.js</a></div><div class=""><br class=""></div><div class="">download the code with:</div><div class=""><br class=""></div><div class="">git clone <a href="https://github.com/coderextreme/X3DJSONLD/" class="">https://github.com/coderextreme/X3DJSONLD/</a></div><div class=""><br class=""></div><div class="">I need help understanding the X3D execution model.  Right now, it’s all messed up.</div><div class=""><br class=""></div><div class="">This is a driver for it:</div><div class=""><br class=""></div><div class=""><a href="https://github.com/coderextreme/X3DJSONLD/blob/master/PPP.js" class="">https://github.com/coderextreme/X3DJSONLD/blob/master/PPP.js</a>  which generates the JavaScript and evals (yuck!) it.</div><div class=""><br class=""></div><div class="">I’m not sure prototypes need too much more work, but you can try converting your prototypes to JSON and expanding them.  it would be helpful to get a</div><div class="">tester.  I would just like to get scripting working in the short term.  That’s my priority 1 item besides validating and encoding JSON for display in X3DOM.</div><div class=""><br class=""></div><div class="">We can add stuff like the requestFieldRef and releaseFieldRef to the X3D JSON loader for X3DOM soon as well.  Question:  Can I request and release in quick succession, and can I use objects and arrays to set the values of the requested field?</div><div class=""><br class=""></div><div class="">This code allows for Cross Site Scripting (XSS) if used improperly!  Know your data (no don’t trust it), or validate with schema and encode (yes we are working on it).</div><div class=""><br class=""></div><div class="">John<br class=""><div><blockquote type="cite" class=""><div class="">On Jan 28, 2016, at 9:42 AM, John Carlson <<a href="mailto:yottzumm@gmail.com" class="">yottzumm@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">Think of Cobweb as a classic VRML silo ported to the web.  At least that’s what it seems like to me.  You must use VRML types in your VRMLscript, it’s not JavaScript.<br class=""><br class="">But yeah, if I read your subject right, you want to port Cobweb protos to X3DOM.  I believe scripts would have to be ported as well.  It might be worth investigating.<br class=""><br class="">John<br class=""><blockquote type="cite" class="">On Jan 28, 2016, at 9:19 AM, John Carlson <<a href="mailto:yottzumm@gmail.com" class="">yottzumm@gmail.com</a>> wrote:<br class=""><br class="">AFAIK, Cobweb does not do DOM or JQuery.  Protos can be used with X3DOM, using my prototype expander for JSON (in beta), but not VRMLscript (partial implementation, alpha or pre alpha).<br class="">We need to figure out how to route to and from scripts in X3DOM.  See my many postings pleading for help.  If you would want to help, I can show you the ropes.<br class=""><br class="">The alternative to Protos for X3DOM is web components, which is what the X3DOM folks are proposing.<br class=""><br class="">John<br class=""><blockquote type="cite" class="">On Jan 28, 2016, at 9:13 AM, doug sanden <<a href="mailto:highaspirations@hotmail.com" class="">highaspirations@hotmail.com</a>> wrote:<br class=""><br class=""><br class="">Q. could protos for V4 be in cobweb format? <br class="">-Doug<br class="">Goal: keep the jQuery/DOM crowd happy, but just up to the interface of a proto, not its body.<br class="">x I have not studied any techical details of either x3dom or cobweb, I have no idea if its doable/practical<br class=""><br class=""><br class="">_______________________________________________<br class="">x3d-public mailing list<br class=""><a href="mailto:x3d-public@web3d.org" class="">x3d-public@web3d.org</a><br class="">http://web3d.org/mailman/listinfo/x3d-public_web3d.org<br class=""></blockquote><br class=""></blockquote><br class=""></div></div></blockquote></div><br class=""></div></body></html>