Location of Javascript files on server

Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Reply

Join Date: Apr 2006
Posts: 5
Reputation: AdamW is an unknown quantity at this point 
Solved Threads: 0
AdamW AdamW is offline Offline
Newbie Poster

Location of Javascript files on server

 
0
  #1
Apr 13th, 2006
I have a Javascript that I want to access from several different web pages.

I want to locate the .js file in the web root (httpdocs) folder and access it from different webpages in sub folders. I've tried setting the src attribute to the URL of the web root but without sucess.

Is it possible to do this and if so how please?
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 1,655
Reputation: tgreer is an unknown quantity at this point 
Solved Threads: 35
Team Colleague
tgreer tgreer is offline Offline
Made Her Cry

Re: Location of Javascript files on server

 
0
  #2
Apr 13th, 2006
I'm trying to understand what problem you have. Are you saying that you don't know how to format the "script" tags? Or that you don't know what to put in the "src" for the tag?
Reply With Quote Quick reply to this message  
Join Date: Apr 2006
Posts: 5
Reputation: AdamW is an unknown quantity at this point 
Solved Threads: 0
AdamW AdamW is offline Offline
Newbie Poster

Re: Location of Javascript files on server

 
0
  #3
Apr 16th, 2006
It was the latter but ive solved it with .\ should I use the full url?
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the JavaScript / DHTML / AJAX Forum
Thread Tools Search this Thread



Tag cloud for JavaScript / DHTML / AJAX
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC