Ken, Thank you for your response. I think I am automatically using location.protocol = file by specifying the relative path to the libraries. I got it to work in the following ways so that I would not hard my server IP address and port number. In init.js, I did this .... baseUrl:(location.protocol === 'file:' ? 'http:' : location.protocol) + '//' + "../../../../arcgis_js_api/library/3.3/jsapi/js/dojo/dojo" .... instead of .... baseUrl:(location.protocol === 'file:' ? 'http:' : location.protocol) + '//' + "127.0.0.1:8001/arcgis_js_api/library/3.3/jsapi/js/dojo/dojo" .... In my JavaScript code, I did this <link rel="stylesheet" href="../../arcgis_js_api/library/3.3/jsapi/js/dojo/dijit/themes/claro/claro.css"> <link rel="stylesheet" href="../../arcgis_js_api/library/3.3/jsapi/js/esri/css/esri.css"> <script type="text/javascript" src="../../arcgis_js_api/library/3.3/jsapi/init.js"></script> instead of <link rel="stylesheet" href="http://127.0.0.1:8001/arcgis_js_api/library/3.3/jsapi/js/dojo/dijit/themes/claro/claro.css"> <link rel="stylesheet" href="http://127.0.0.1:8001/arcgis_js_api/library/3.3/jsapi/js/esri/css/esri.css"> <script type="text/javascript" src="http://127.0.0.1:8001/arcgis_js_api/library/3.3/jsapi/init.js"></script> For other developers who have the similar need, adjust the relative path depending on where the libraries are installed/located.
... View more