<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii" /></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">It rocks!<br>
You release it just in time for OpenEarthView project underground design (Open Street Map to X3D in node.js).<br>
No more XML! ;-)<br>
Thanks a lot!<br>
<br>
Clément.<br><br><div class="gmail_quote">Le 13 novembre 2015 23:23:17 UTC+01:00, John Carlson <yottzumm@gmail.com> a écrit :<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
I have added improvements to my unofficial X3D JSON to X3DOM loader.  Please test against your X3D JSON scenes.<div class=""><br class="" /></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">Loader (and license) is at:</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><br class="" /></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><a href="https://github.com/coderextreme/X3DJSONLD" class="">https://github.com/coderextreme/X3DJSONLD</a></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><br class="" /></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><br class="" /></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">You can do:</div><div style="margin: 0px; font-size: 11px; line-height: normal;
font-family: Menlo;" class=""><br class="" /></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">$ git clone <a href="https://github.com/coderextreme/X3DJSONLD" class="">https://github.com/coderextreme/X3DJSONLD</a></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><br class="" /></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">then</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><br class="" /></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">$ cd X3DJSONLD</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">$ unzip <a href="http://www.web3d.org/x3d/content/examples/X3dExampleArchivesJsonScenes.zip"
class="">http://www.web3d.org/x3d/content/examples/X3dExampleArchivesJsonScenes.zip</a></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">or actually something like:</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">$ unzip ~/Downloads/X3dExampleArchivesJsonScenes.zip</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">$ ln -s <a href="http://www.web3d.org/x3d/content/examples/" class="">www.web3d.org/x3d/content/examples/</a> </div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">$ python -m SimpleHTTPServer</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><div style="margin: 0px; line-height: normal;" class=""><br class="" /></div><div style="margin: 0px; line-height: normal;" class="">You should be able to go to <a href="http://localhost:8000"
class="">http://localhost:8000</a> to see the loader in action.  I have moved several large scenes to the top of the select list.</div><div style="margin: 0px; line-height: normal;" class=""><br class="" /></div><div style="margin: 0px; line-height: normal;" class="">Alternatively, instead of running python, you can run node.js, available from <a href="https://nodejs.org/" class="">https://nodejs.org/</a></div><div style="margin: 0px; line-height: normal;" class=""><br class="" /></div><div style="margin: 0px; line-height: normal;" class="">Change config.js to point to you examples folder.</div><div style="margin: 0px; line-height: normal;" class=""><br class="" /></div><div style="margin: 0px; line-height: normal;" class="">$ npm install</div><div style="margin: 0px; line-height: normal;" class="">$ node app.js</div><div style="margin: 0px; line-height: normal;" class=""><br class="" /></div><div style="margin: 0px; line-height: normal;" class="">Then go to <a
href="http://localhost:3000" class="">http://localhost:3000</a> to see the loader in action.</div><div style="margin: 0px; line-height: normal;" class=""><br class="" /></div><div style="margin: 0px; line-height: normal;" class="">Alternatively, change the name of X3DJSONLD/index.html to X3DJSONLD.html, then copy X3DJSONLD.html, flipper.json and X3DJSONLD.js to <a href="http://www.web3d.org/x3d/content/" class="">www.web3d.org/x3d/content/</a> (beware of overwrites) and go to web server at <a href="http://www.web3d.org/x3d/content/X3DJSONLD.html" class="">http://www.web3d.org/x3d/content/X3DJSONLD.html</a> (Don, you can try this).  I will probably make the index.html name change permanent at some point, but I need Don to tell me a good name that is available for me to use under x3d/content/ (or exactly where he wants to put the loader, if anywhere).</div><div style="margin: 0px; line-height: normal;" class=""><br class="" /></div><div style="margin: 0px; line-height: normal;"
class="">If someone wants to add a typeahead search pane for the select list, please do.  Forks and pull requests are welcome.</div><div style="margin: 0px; line-height: normal;" class=""><br class="" /></div><div style="margin: 0px; line-height: normal;" class=""><br class="" /></div><div style="margin: 0px; line-height: normal;" class="">I view this code as fairly simple to review and not a large security risk, as long as you insure that the JSON you load does not contain security holes.  That is, watch out for embedded script tags and other nasties.  No attempt to validate the JSON is made at this point, so my loader will load ANY DOM found in the JSON, including SVG, HTML, etc.  About the only thing to watch out for is the @, - and # prefixes.  If you do want to load SVG or HTML JSON, you will need to make sure your JSON has those prefixes.</div><div style="margin: 0px; line-height: normal;" class=""><br class="" /></div><div style="margin: 0px;
line-height: normal;" class="">John</div><div style="margin: 0px; line-height: normal;" class=""><br class="" /></div><div style="margin: 0px; line-height: normal;" class=""><br class="" /></div><div class=""><br class="" /></div></div><p style="margin-top: 2.5em; margin-bottom: 1em; border-bottom: 1px solid #000"></p><pre class="k9mail"><hr /><br /></pre><p style="margin-top: 2.5em; margin-bottom: 1em; border-bottom: 1px solid #000"></p><pre class="k9mail"><hr /><br />X3dom-users mailing list<br />X3dom-users@lists.sourceforge.net<br /><a href="https://lists.sourceforge.net/lists/listinfo/x3dom-users">https://lists.sourceforge.net/lists/listinfo/x3dom-users</a><br /></pre></blockquote></div><br>
clement@igonet.fr</body></html>