How to install JavaScript API SDK as local files not via a web server

Discussion created by david.k.ip on Apr 16, 2013
Latest reply on Apr 17, 2013 by david.k.ip
I installed the JavaScript API SDK 3.3 successfully on my Python server (no Internet) by replacing [HOSTNAME_AND_PATH_TO_JSAPI] with "".

But I realized that I cannot hard code the IP address and port number in the init.js because my server is configurable based on a config file during the start-up sequence.

How can I install the SDK in such an environment? Is it true that the location.protocol is default to "http:"? Do you think making location.protocol equal to "file:" will work? And what do I enter in the [HOSTNAME_AND_PATH_TO_JSAPI]? Thanks.