Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

client side include problem

Status
Not open for further replies.

webfuture

MIS
Jan 17, 2003
65
CA
We are having problem with line like this ...
Code:
<script language="javascript" src="/dcu30/framework/xmlobjects/XmlTools.js" runat="server"></script>

Depending if they run on IIS or apache.
On IIS, the path to the js file can be relative but on apache it need to be from the virtual directory.

apache runs with sun one asp on top.

We are trying to find a solution that will work on both platform.

Thanks for any hints

Simon
 
Maybe echo out a different BASE HREF or something depending on the environment? Just a thought.

For Apache use this in the <head> section:
Code:
<base href="/path/to/virtual/dir/">
And for IIS don't echo it at all.

Cheers,
Jeff

[tt]Jeff's Page [/tt][tt]@[/tt][tt] Code Couch
[/tt]

What is Javascript? faq216-6094
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top