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

bimvie.ws dependent BIMserver ? #60

Open lvxiaomu opened 7 years ago

lvxiaomu commented 7 years ago

Hi ,

bimvie.ws and BIMserver can be installed on different machines ?

rubendel commented 7 years ago

Yes, just make sure you change the appropriate settings in settings.js (in BIMvie.ws):

lvxiaomu commented 7 years ago

getVersion, just add a version number for the loaded file.

myRequest.open("GET", Global.baseDir + "plugin.version", true); this line of code will launch the following request

Request URL:http://localhost:8080/bimvie.ws-bimviews-0.0.57/plugin.version
Request Method:GET
Status Code:404 Not Found
Remote Address:127.0.0.1:8080

I can't find the plugin.version file in the local path.

rubendel commented 7 years ago

That file does not exist, that's why you have to replace the code in the method with either:

successCallback("123");

OR

successCallback((new Date().getTime()));
lvxiaomu commented 7 years ago

image

<script>
  // https://github.com/rgrove/lazyload
  function l(b) {
    var a = m[b], c, f;
       if (a)
         c = a.callback,
         f = a.urls,
         f.shift(),
         h = 0,
         f.length || (c && c.call(a.context, a.obj),
         m[b] = null ,
         n[b].length && j(b))
  }
.....
</script>

the last time, in this part of the code f.length || (c && c.call(a.context, a.obj), c.call is undefined, so it will be wrong