![]() |
|
|
|
#1 |
|
The file/folder structure is like
root/one/index.htm. . 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");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 torontodesi |
|
|
|
|
|
|
#2 |
|
Junior Member
Join Date: Feb 2009
Posts: 20
|
JavaScript are executing on web browser. So all paths should access outside (web browser) and relative to web server.
I assume you can reach index.htm from localhost/one/index.htm 1. So you must put relative path from there files/xml/datafile.xml and xml file should accessible from localhost/one/files/xml/datafile.xml 2 as same as above files/images/picture.jpg 3. relative to web server (webapp) susith |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Feb 2009
Posts: 3
|
Thanks....
torontodesi |
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Javascript not firing becasue of Response.Redirect | CorpAmis | Software | 1 | 04-30-2009 07:46 AM |
| navigator.browserLanguage --JavaScript | cauzon | Software | 0 | 12-28-2007 05:33 AM |
| How to assign a returns value of a javascript function to a hiddenfield in a webpart | Chander | Software | 0 | 12-20-2007 09:14 AM |
| Values set by javascript are not reflected in serverside(.Net) | rchimakurty | Software | 2 | 11-28-2007 10:07 AM |
| problem with javascript | dootam | Software | 1 | 07-10-2007 06:38 AM |