• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 121
  • Last Modified:

Javascript Src = In IE

When I call a javascript file that resides above my pub www root via src, it works fine in Firefox & Safari but fails in IE. It's not a permissions issue.. took care of that. When I move it into the www root, it's fine. Anyone know a workaround without putting the file in my pub root? Truly stumped.
This works in all browsers: 
<script type="text/javascript" src="insidewww/file.js"></script>
This works in all except IE: 
<script type="text/javascript" src="/absolutepth/abovewww/file.js"></script>

Open in new window

1 Solution
I know, and use relative paths successfully on IE, FF, etc.
<script type="text/javascript" src="../../here/there/abovewww/file.js"></script>

Open in new window

Try to use a relative path instead, staring by ../
for example:
<script type="text/javascript" src="../absolutepth/abovewww/file.js"></script>

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now