DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/)
-   JavaScript / DHTML / AJAX (http://www.daniweb.com/forums/forum117.html)
-   -   Location of Javascript files on server (http://www.daniweb.com/forums/thread43301.html)

AdamW Apr 13th, 2006 4:33 pm
Location of Javascript files on server
 
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?

tgreer Apr 13th, 2006 5:29 pm
Re: Location of Javascript files on server
 
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?

AdamW Apr 16th, 2006 11:56 am
Re: Location of Javascript files on server
 
It was the latter but ive solved it with .\ should I use the full url?


All times are GMT -4. The time now is 11:47 pm.

Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC