<div dir="auto">I have this JavaScript which used to convert X3D Scripts to HTML scripts for X3DOM, but since X3DOM does its own Protos now, I haven’t tested it in a long time. Someone could pick it up. Note it works with JSON, not XML. <div><a href="https://github.com/coderextreme/X3DJSONLD/blob/master/src/main/node/Script.js">https://github.com/coderextreme/X3DJSONLD/blob/master/src/main/node/Script.js</a></div><div dir="auto"><br></div><div dir="auto">I could dual license, it’s all my own code.</div><div dir="auto"><br></div><div dir="auto">So that’s how to make X3DOM work with Script events. X_ITE doesn’t use HTML scripts, it has its own.</div><div dir="auto"><br></div><div dir="auto">Enjoy,</div><div dir="auto"><br></div><div dir="auto">John</div></div><div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Mon, Aug 18, 2025 at 9:42 PM John Carlson <<a href="mailto:yottzumm@gmail.com">yottzumm@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto">I use JQuery/JavaScript and <a href="http://socket.io" target="_blank">socket.io</a>, but Sunrize and FreeWRL don’t seem to do HTML. I just include a Script tag in X_ITE. See my JSONverse project: <div><a href="https://github.com/coderextreme/JSONverse" target="_blank">https://github.com/coderextreme/JSONverse</a></div><div dir="auto"><br></div><div dir="auto">I wouldn’t be opposed to including an HTML file in a Layer, it might make things easier to deal with at a programmer level, and we have a way to distinguish Script elements by type.</div><div dir="auto"><br></div><div dir="auto">Enjoy!</div></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Aug 18, 2025 at 9:13 PM GPU Group via x3d-public <<a href="mailto:x3d-public@web3d.org" target="_blank">x3d-public@web3d.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)"><div dir="ltr">"HTML" could/should there be an HTMLLayer node with URL='xx.html' derived from Layer? <div>How does X_ITE talk to HTML?</div><div>-Doug</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Aug 18, 2025 at 7:13 PM John Carlson <<a href="mailto:yottzumm@gmail.com" target="_blank">yottzumm@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)"><div><div dir="auto">I think that HTML would be preferred for most people, but I’m eyeing TextBox.x3d for possible use on X3DJSONLD 12. Can I copy/paste in and out? On the web? Will we ever see styling of X3D nodes? Does glTF or OpenUSD do styling?</div></div><div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Aug 18, 2025 at 2:21 PM GPU Group via x3d-public <<a href="mailto:x3d-public@web3d.org" target="_blank">x3d-public@web3d.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)"><div dir="ltr">You're welcome to use anything on in-scene UI / GUI widgets I did without citing. or credit needed - feel free to scrape and hack:<div><a href="https://freewrl.sourceforge.io/tests/26_Humanoid_Animation/UI/" target="_blank">https://freewrl.sourceforge.io/tests/26_Humanoid_Animation/UI/</a> <br></div><div>- protos, I made unlabeled checkbox, and derived labeled checkbox proto from that, etc, for a few widget types, but I was hacking to get a scene running, not trying to make a perfect component.</div><div>Q. should there be a web3d Component with standard in-scene GUI widgets?</div><div>benefit: someone just starting with web3d could do more fancy things sooner / faster / easier.</div><div>-Doug</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Aug 17, 2025 at 11:56 PM John Carlson <<a href="mailto:yottzumm@gmail.com" target="_blank">yottzumm@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)"><div dir="ltr">I place this example under the Web3D Consortium License, for submission to the archives. I think that Christoph V. and maybe Doug Sanden have had their hands on files like these. They should probably give their blessing<div><br></div><div>The letter with equals, "=", sliders work in FreeWRL. I haven't gotten this example to slide like other X_ITE samples. I am using Sunrize and FreeWRL.</div><div><br></div><div>The main problem with this scene is that the middle shape inside the coordinate axes doesn't change shape. That may be due to how generateCoordinates() is called or not called (it may be currently commented out). There might be issues with coordinates or coordIndexes.</div><div><br></div><div>FreeWRL drags the number and letter together correctly. Sunrize doesn't drag at all.</div><div><br></div><div>Anyway, something for your perusal, and archiving.</div><div><br></div><div>There may be an issue with how I am using JavaScript and setting Script fields with a variable???</div><div><br></div><div>Here's are some of the critical lines that need to work, including the last one:</div><div><br></div><div>function newTranslation(value) {<br> set_protoValue(value.x * protoScale);<br> set_protoText(new MFString(protoParameterName+'='+protoValue.toFixed(2)));<br> protoScript[protoParameterName] = protoValue;<br>};</div><div><br></div><div>John</div><div>John</div></div>
</blockquote></div>
_______________________________________________<br>
x3d-public mailing list<br>
<a href="mailto:x3d-public@web3d.org" target="_blank">x3d-public@web3d.org</a><br>
<a href="http://web3d.org/mailman/listinfo/x3d-public_web3d.org" rel="noreferrer" target="_blank">http://web3d.org/mailman/listinfo/x3d-public_web3d.org</a><br>
</blockquote></div></div>
</div>
</blockquote></div>
_______________________________________________<br>
x3d-public mailing list<br>
<a href="mailto:x3d-public@web3d.org" target="_blank">x3d-public@web3d.org</a><br>
<a href="http://web3d.org/mailman/listinfo/x3d-public_web3d.org" rel="noreferrer" target="_blank">http://web3d.org/mailman/listinfo/x3d-public_web3d.org</a><br>
</blockquote></div></div>
</blockquote></div></div>