- Joined
- Feb 25, 2009
- Messages
- 1
- Reaction score
- 0
The file/folder structure is like
.
.
The index.htm files in folder one and two has reference to .js file -----
in head section. That is simple.
.
Now the .js file has code to open xml file as follows:
QUESTION 1 what this path could be?
.
.
.
.
there are pictures on index.htm in one and two which come from respective files/images folders, but their path is obtained from .xml file
.
.
.
QUESTION 3 For the above file/folder structure do path and imagepath change depending its on location - local machine or web server?
Thanks
root/one/index.htm
root/one/files/images/picture.jpg
root/two/index.htm
root/two/files/images/pict888.jpg
root/shared/files/js/test1.js
root/shared/files/xml/datafile.xml
root/one/files/images/picture.jpg
root/two/index.htm
root/two/files/images/pict888.jpg
root/shared/files/js/test1.js
root/shared/files/xml/datafile.xml
.
.
The index.htm files in folder one and two has reference to .js file -----
<script src="../shared/files/js/test1.js" type="text/javascript"></script>
in head section. That is simple.
.
Now the .js file has code to open xml file as follows:
xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
xmlDoc.async=false;
xmlDoc.load("path");
xmlDoc.async=false;
xmlDoc.load("path");
QUESTION 1 what this path could be?
.
.
.
.
there are pictures on index.htm in one and two which come from respective files/images folders, but their path is obtained from .xml file
<row1 id="1" imageurl="imagepath" rowtitle="title">desctiption test</resrow>
QUESTION 2 what this imagepath could be? .
.
.
QUESTION 3 For the above file/folder structure do path and imagepath change depending its on location - local machine or web server?
Thanks