[x3d-public] New feature of X3D JSON validator: URLs

Brutzman, Donald (Don) (CIV) brutzman at nps.edu
Tue Feb 15 20:02:48 PST 2022


Hi John.  Your application ran but provided an ambiguous result:

 

*	"coderextreme.net says: Valid or user clicked OK"

 

all the best, Don

-- 

Don Brutzman  Naval Postgraduate School, Code USW/Br        brutzman at nps.edu

Watkins 270,  MOVES Institute, Monterey CA 93943-5000 USA    +1.831.656.2149

X3D graphics, virtual worlds, Navy robotics https://
faculty.nps.edu/brutzman

 

From: x3d-public <x3d-public-bounces at web3d.org> On Behalf Of John Carlson
Sent: Monday, February 14, 2022 4:54 PM
To: X3D Graphics public mailing list <x3d-public at web3d.org>
Subject: [x3d-public] New feature of X3D JSON validator: URLs

 

https://coderextreme.net/X3DJSONLD/src/main/html/validator.html?https://code
rextreme.net/X3DJSONLD/src/main/data/rubik.json
<https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcoderextr
eme.net%2FX3DJSONLD%2Fsrc%2Fmain%2Fhtml%2Fvalidator.html%3Fhttps%3A%2F%2Fcod
erextreme.net%2FX3DJSONLD%2Fsrc%2Fmain%2Fdata%2Frubik.json&data=04%7C01%7Cbr
utzman%40nps.edu%7C47e91961b51e4cbeed3408d9f01db93a%7C6d936231a51740ea9199f7
578963378e%7C0%7C0%7C637804833362618013%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4w
LjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=w9IwF30J
4tsDKtJ3CzvdPNuF1JNDSqrTyCRFKFdXswM%3D&reserved=0> 

 

This will load the JSON into the web page without having to copy/paste. Note
that the server following the ? will have to have the CORS setting (see CORS
references on https://www.web3d.org/x3d/content/examples/X3dResources.html),
or the origins should be the same.

 

The validator.html source code can be downloaded from:

 

https://github.com/coderextreme/X3DJSONLD
<https://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.co
m%2Fcoderextreme%2FX3DJSONLD&data=04%7C01%7Cbrutzman%40nps.edu%7C47e91961b51
e4cbeed3408d9f01db93a%7C6d936231a51740ea9199f7578963378e%7C0%7C0%7C637804833
362618013%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTi
I6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=dGA3ehNw64WdSfpLT49MqwKISoUaaVLKc%2Beo
tz9E9Ng%3D&reserved=0> 

 

Note that validation will not begin immediately, and will require that you
click the validation link. above the JSON.

 

If anyone has good idea for enabling this link from a Java client, please
let me know.  I want the errors from the alert to go back to the client.

 

John

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20220216/18070558/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5353 bytes
Desc: not available
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20220216/18070558/attachment.p7s>


More information about the x3d-public mailing list