HighDots Forums  

Re: Include statement path

Javascript JavaScript language (comp.lang.javascript)


Discuss Re: Include statement path in the Javascript forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Jeff North
 
Posts: n/a

Default Re: Include statement path - 07-02-2004 , 06:57 PM






On Fri, 02 Jul 2004 20:06:32 GMT, in comp.lang.javascript "Cracker
Jacks" <cjacks (AT) verizon (DOT) net> wrote:

Quote:
| I am having trouble pointing an ASP file to another ASP for use in the
| include statement. I do not understand all the different paths that the
| server or the scripts use. Could someone please explain the proper syntax
| for this or point me in the right direction? Thanks.
|
| say the file i want to include is here:
|
| iwww.thisisit.com/subweb/scripts/this.asp
|
| and from a file in the root folder of the sub web I want to put an include
| statement in it that points to the included file. I also need to know the
| return path.
To access a file from the root folder use scripts/this.asp
From any other folder use ../scripts/this.asp
From a nested folder use ../../scripts/this.asp

the ../ tells the server to go back one folder/directory to find the
folder you are requesting.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.