[Javascript] OT: difference

Peter Brunone peter at brunone.com
Wed Aug 6 16:14:04 CDT 2003


	The only problem with that is if the server admin has disabled
the use of ".." relative path references... which is when include
virtual becomes indispensible.

Peter

-----Original Message-----
From: javascript-bounces at LaTech.edu
[mailto:javascript-bounces at LaTech.edu] On Behalf Of Andrew Gibson

To be truthful I always found virtual too confusing so I've always used
file="../images/myimage.gif"  etc  that way its also similar to other
relative references, eg in a href  's

Andrew Gibson


Subject: [Javascript] OT: difference

Do you know what the difference is between using:
<!--#include virtual=""-->
and:
<!--#include file=""-->

Is the only difference that you can jump directly to the root directory
by starting off with a /?
example:  <!--#include virtual="/images/image.gif"-->
In effect making the include relative to the root directory rather than
relative to the file the include is in?



More information about the Javascript mailing list