[x3d-public] XML -> JSON in X3DJSONLD: Why you should test in different environments

John Carlson yottzumm at gmail.com
Sat Apr 25 05:21:34 PDT 2020


file:///C:/Users/coderextreme/X3DJSONLD/src/main/html/hanim.html  (0/4) --
due to CORS

On Thu, Apr 23, 2020 at 7:42 PM John Carlson <yottzumm at gmail.com> wrote:

> The line in X3DJSONLD/src/main/shell/several.sh that works best is:
>
> ls -d "$@" | grep -v intermediate | grep -v "\.new" | xargs ${NODE}
> ${NODEDIR}/xml2all.js | xargs -P $PROCESSORS ${NODE} ${NODEDIR}/json2all.js
>
> Be sure to update to get this.  Don, please compare the version of
> BoxManAnimationPanel.json (it's in X3DJSONLD/src/main/data) with your
> version generated by X3dToJson.xslt.  My version works better in some cases
> (using localhost).   I have been unable to get the interactive stuff to
> work, seems to be a problem with by hosting site or something, still
> researching.  You can go to:
>
> http://localhost:3000/src/main/html/hanim.html
>
> for a fully working website (using node.js and express.js).
>
> Or you can to to apache and get this less than desirable version:
>
> https://coderextreme.net/X3DJSONLD/src/main/html/hanim.html  (3/4
> browsers work)
>
> I could use some apache configuration or something--not sure to get this
> site working.
>
> I will look into it.
>
> At this time, the  site at:
> https://coderextreme.net/X3DJSONLD/src/main/html/index.html using the
> BoxManAnimation.json file is less than desirable--only 1/4 of browsers work
> in this case.
>
>  http://localhost:3000/ using the BoxManAnimationPanel.json works 3.5/4
> of browsers.
>
> In summary, it's best to use a localhost site running node.js with your
> HTML file with url='"..."' as seen in
> https://coderextreme.net/X3DJSONLD/src/main/html/hanim.html view page
> source (right click in chrome).  If you want the best results.
> If someone knows an apache/node.js expert (probably admin or devOps) who
> can track down these things, I could use some help.  Right now, it's a
> puzzle!
>
> And no, I haven't looked at the web console yet.  That's my next step.
>
> All source code can be found in https://github.com/coderextreme/X3DJSONLD/
>
> Thanks,
>
> John
>
>
>
>
> On Thu, Apr 23, 2020 at 6:46 PM John Carlson <yottzumm at gmail.com> wrote:
>
>> I got a new file to work with on my XML ->  JSON converter in X3DJSONLD.
>> It showed how unprepared I was for dealing with HAnim files.  However,
>> currently configured several.sh should use the X3dTJson.xslt stylesheet
>> that Don developed.  This will allow at least the JSON file to work with
>> X_ITE.  I am currently working on a (X_ITE & X3DOM)  XML and X3DOM JSON
>> (through DOM) versions working.
>>
>> I use dev versions of both X3DOM and the latest X_ITE. I did see problems
>> with converting XML to JSON on the X3DJSONLD on my website.
>>
>> The data folder currently uses Don's stylesheet (above) to convert to
>> JSON.
>>
>> I will start more testing and development on the the
>> BoxManAnimationPanel.x3d from the Sourceforge site.
>>
>> John
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20200425/2681386f/attachment-0001.html>


More information about the x3d-public mailing list