Forum Moderators: open

Message Too Old, No Replies

what does javascript consider relative path?

         

scorpion

12:46 am on Oct 9, 2003 (gmt 0)

10+ Year Member



Does anybody have an article that explains what exactly javascript considers a relative path?

i.e. we use the standard dreamweaver preload function and the paths are relative like this:

('/images/file1.jpg', '/images/file2.jpg') and we have a script in /cgi-bin that calls this function internally....

Does javascript know this is server root relative or you have to specify like
('../images/file1.jpg')

claus

6:36 am on Oct 9, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I think this is more about the implementation of javascript in the different browsers. Afaik, both models will work, but i haven't tested all browsers.

/claus