JSCAD User Group

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    1. Home
    2. hamade
    H
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 7
    • Best 0
    • Controversial 0
    • Groups 0

    hamade

    @hamade

    0
    Reputation
    1
    Profile views
    7
    Posts
    0
    Followers
    0
    Following
    Joined Last Online
    Website fablab-shinagawa.org Location Tokyo, Japan

    hamade Unfollow Follow

    Latest posts made by hamade

    • RE: proxyUrl setting

      @z3dev
      I am using a rental server of general settings, nothing special, I think.
      I did no configuration of the web server.
      I did not changed anything on setting when installing the web site.

      Thanks to all of you related,
      I have uploaded the page.
      https://www.fablab-shinagawa.org/archive/index.html
      when you click "パラメトリック" - which means "parametric"- tab,
      you would see the list of our parametric designs, and again when you click a design,
      you would link to the page includes openjscad model.

      posted in General Discussions
      H
      hamade
    • RE: proxyUrl setting

      @hrgdavor
      Thank you for your reply.
      I have got what we want.
      What a beginner, the problem was the suffix of "remote.pl".
      When I changed to .cgi, it works.

      Thank you for your support.

      posted in General Discussions
      H
      hamade
    • RE: proxyUrl setting

      @hrgdavor
      Thank you for your reply.
      I suppose there is no error showed in console.

      スクリーンショット 2021-10-12 20.12.16.png

      The console says that :
      DevTools failed to load source map: Could not parse content for https://www.fablab-shinagawa.org/jscad/packages/web/drawer.css.map: Unexpected token < in JSON at position 0

      スクリーンショット 2021-10-12 20.15.55.png

      posted in General Discussions
      H
      hamade
    • RE: proxyUrl setting

      @hrgdavor
      Thank you for your reply.
      I think, it might be caused not by CORS matter.
      Because when I am accessing from the same server, there still shows error message like this (Accessed URL: https://www.fablab-shinagawa.org/jscad/packages/web/index.html#https://fablab-shinagawa.org/jscad/designs/canHolder.js) :

      ERROR:
      Unexpected token # in JSON at position 0
      Stack: SyntaxError: Unexpected token # in JSON at position 0

      posted in General Discussions
      H
      hamade
    • RE: proxyUrl setting

      @z3dev
      Thank you for your reply.
      My rental server supports PERL.
      I placed "remote.pl" file, and made "cache" folder in the same directory of "index.html". What is the permission setting of "cache" folder ?

      The URL you showed as not accessible, has to be :
      https://www.fablab-shinagawa.org/jscad/designs/petbottleOpener.js
      Modeling scripts has no problem.
      Please check this link :
      https://openjscad.xyz/#https://www.fablab-shinagawa.org/jscad/designs/petbottleOpener.js

      And I always have following error, when I put the link like :
      https://www.fablab-shinagawa.org/jscad/packages/web/index.html#https://www.fablab-shinagawa.org/jscad/designs/petbottleOpener.js

      ERROR:
      Unexpected token # in JSON at position 0
      Stack: SyntaxError: Unexpected token # in JSON at position 0

      posted in General Discussions
      H
      hamade
    • RE: proxyUrl setting

      @z3dev
      Thank you for your reply.
      Actually, I do not need a 100% copy of the JSCAD website.
      Just want to include JSCAD interface to existing website.
      Instead of former question, I have been working on following URL, just with the necessary script :
      https://fablab-shinagawa.org/jscad/

      In this page, I edited the script temporary so that we are able to manipulate our modeling sources via help menu.

      Anyway, I would like to know the process to activate using those URLs such as :
      https://fablab-shinagawa.org/jscad/index.html#https://fablab-shinagawa.org/jscad/designs/fruitsHolder.js
      without errors.

      Thank you.

      posted in General Discussions
      H
      hamade
    • proxyUrl setting

      Hi

      I am now trying to include openjscad interface on our website.
      The modeling scripts are ready, and works well, but I am not able to mount the script file directly on the page like

      https://YOURSITE/?uri=http://www.thingiverse.com/download:164128

      or

      https://YOURSITE/#http://www.thingiverse.com/download:164128

      the readme in the github says that

      use and path of the proxy can be set by:
      • changing the proxyUrl value in src/ui/index.js
      • since this is hardcoded , if you do not use the provided dev server, rebuild your main file (See Contributing)

      but there is no file such as src/ui/index.js
      by default installation.

      Is there something wrong with my installation?

      or any suggestion to set the proxyUrl, and so on
      I would like to know the needed process to enable the remote file loading.

      I am working on:
      https://fablab-shinagawa.org/jscad/packages/web/index.html

      one of the modeling script is:
      https://fablab-shinagawa.org/jscad/designs/fruitsHolder.js

      Thank you

      posted in General Discussions
      H
      hamade