<div dir="ltr">It looks like I mean a library of concrete classes, similar to X3DJSAIL's jsail package.  Don, I've updated the example JavaScript code, there was a major flaw.  The first parameter is now a JS Object with the SF fields. I don't have the MF field names present yet, but we can continue refining.  I think if we do the MF properties in JS, we'll essentially come up with JSON.  Hmm. Is there a better way?<div></div><div><br></div><div>We need a way to import the concrete classes into the example JavaScript. Suggestions and help are welcome.</div><div><br></div><div>John</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jan 13, 2020 at 3:58 PM Andreas Plesch <<a href="mailto:andreasplesch@gmail.com">andreasplesch@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Mon, Jan 13, 2020 at 4:40 PM John Carlson <<a href="mailto:yottzumm@gmail.com" target="_blank">yottzumm@gmail.com</a>> wrote:<br>
><br>
> Ant build script (All found on X3D sourceforge project):<br>
><br>
> <a href="http://www.web3d.org/x3d/stylesheets/node/build.xml" rel="noreferrer" target="_blank">www.web3d.org/x3d/stylesheets/node/build.xml</a><br>
><br>
> (recommend "all" target). In that folder, run<br>
><br>
> ant all to compile and run the test, but first, look at hand generated example:<br>
><br>
> Example for those creating the node.js SAI library: (very buggy)<br>
> <a href="http://www.web3d.org/x3d/stylesheets/node/examples/HelloWorldProgramOutput.js" rel="noreferrer" target="_blank">www.web3d.org/x3d/stylesheets/node/examples/HelloWorldProgramOutput.js</a><br>
><br>
> Code that ultimately needs work:<br>
><br>
> <a href="http://www.web3d.org/x3d/stylesheets/node/JavaScriptSerializer.js" rel="noreferrer" target="_blank">www.web3d.org/x3d/stylesheets/node/JavaScriptSerializer.js</a><br>
><br>
> Discussion:<br>
> Does this look like a good style in the examples file?<br>
> Does the style match the standard JavaScript SAI?<br>
> What is needed to standardize JavaScript SAI for X3Dv4?<br>
> How fast can we get a Hello World roundtrip working?<br>
><br>
> This is primarily a build integration release.  Please integrate the build.xml all target with the stylesheets build.xml.  Thanks, Don!<br>
><br>
> Don, I see your way ahead of me, integrating this into everything.<br>
><br>
> Can someone point me at a working JavaScript SAI?<br>
<br>
The Javascript SAI is standardized. x_ite has a SAI which follows the<br>
standard closely:<br>
<a href="http://create3000.de/users-guide/ecmascript-object-and-function-definitions/" rel="noreferrer" target="_blank">http://create3000.de/users-guide/ecmascript-object-and-function-definitions/</a><br>
<br>
<a href="http://create3000.de/x_ite/accessing-the-external-browser/" rel="noreferrer" target="_blank">http://create3000.de/x_ite/accessing-the-external-browser/</a> has an example.<br>
<br>
But I think you mean something else.<br>
<br>
><br>
> Thanks,<br>
><br>
> John<br>
<br>
<br>
<br>
-- <br>
Andreas Plesch<br>
Waltham, MA 02453<br>
</blockquote></div>