Now, if I move the index.html file to my website root domain.com/index.html and change the links int he index.html by adding us_map/ in front of all src for css and js files, the map does not load. I’m not sure what am I missing.
Here is my code in the header of the new file:
<link href="us_map/css/reset.css" rel="stylesheet" type="text/css" />
<link href="us_map/css/fonts.css" rel="stylesheet" type="text/css" />
<link href="us_map/css/style.css" rel="stylesheet" type="text/css" />
<link href="us_map/css/map.css" rel="stylesheet" type="text/css" />
<script src="/A2EB891D63C8/avg_ls_dom.js" type="text/javascript"></script>
<script src="us_map/js/jquery.js" type="text/javascript"></script>
<script src="us_map/js/raphael.min.js" type="text/javascript"></script>
<script src="us_map/js/scale.raphael.js" type="text/javascript"></script>
<script src="us_map/js/paths.js" type="text/javascript"></script>
<script src="us_map/js/init.js" type="text/javascript"></script>
Thanks
Does that folder exist ? us_map
Try putting / before the folder name
Also is this folder A2EB891D63C8 a legitimate src?
SportTipsWorld said
Does that folder exist ? us_mapTry putting / before the folder name
Also is this folder A2EB891D63C8 a legitimate src?
The folder us_map does exist. I also tried to put / before the folder name but didn’t work. I can see that the js and css files are loading appropriately.
I have not idea about folder A2EB891D63C8 . This came with the file and I don’t think it is working at all. I checked the A2EB891D63C8 src link in the original file and that also does not exist but the map loads correctly with or without that folder.
Once again, here is what I have:
mydomain.com/us_map/css
mydomain.com/us_map/fonts
mydomain.com/us_map/images
mydomain.com/us_map/js
mydomain.com/us_map/xml
mydomain.com/us_map/index.html
I copied a the index.html to root directory and called it map.html and changed the src in it:
mydomain.com/map.html
index.html which is located in the us_map is working fine. map.html which is located in the root does not load the map, but the css and other links are loaded correctly.
url: 'us_map/xml/usaMapSettings.xml',
The above URL should be updated based on the index file location.