opensourceBIM / bimvie.ws

Javascript client for Building Information Modelling, using open standards like IFC, BCF and BIMSie. Using Bootstrap, BIM Surfer, etc..
GNU Affero General Public License v3.0
171 stars 87 forks source link

js #62

Closed lvxiaomu closed 7 years ago

lvxiaomu commented 7 years ago

Hello, I'm sorry to disturb you,Could you give me a help? When I visit http://localhost:8080/bimvie.ws-bimviews-0.0.57/?page=SelectServer, the ?page=SelectServer loading the content of <script> in index.html not in selectserver.html,so it can't execute selectServer. I don't know what's wrong here?

image

lvxiaomu commented 7 years ago

When I visit http://localhost:8080/bimvie.ws-bimviews-0.0.57/?page=SelectServer, Is not the code of <script> in index.html should no longer perform? But my web app was implemented this part of the code.

rubendel commented 7 years ago

Note the question mark (?) in the URL. It should still load index.html (if your webserver is configured to do so, which it probably is). index.html will have a look at the URL parameters and decide what else to load (using "ajax").

rubendel commented 7 years ago

A simple "console.log" statement at the the top of the JavaScript in index.html should help you figure out if it's executed.

lvxiaomu commented 7 years ago

loadBimServerApi() in the index.htmlis defined as follows

function loadBimServerApi(callback) {}

but calling loadBimServerApi() in the selectserver.html as follows

loadBimServerApi("http://" + address, Global.notifier, Global.version, function(serverInfo){})

why?

rubendel commented 7 years ago

Ah so you changed the "allowBimServerAddress" settings? It would have been useful if you mentioned that. Do you have multiple BIMservers running? The SelectServer functionality has not been updated to the new BIMserver API. I'll update it a some point.

rubendel commented 7 years ago

Just updated it, basically replaced the whole lot with a redirect.

lvxiaomu commented 7 years ago

Thank you very much, after the update, already can run!