When displaying the results of an intranet seach i use a <base href=... > to point to the original locations of the graphic files in the documents.
Some elements must be referenced using relative paths <script src=../scripts/xxx.js> and i can't use absolute path here for lots of reasons. Is there a way to say the browser "ignore the base href for following link" without using absolute paths?
Maybe with javascript?
Quid Quid Latine Dictum Sit, Altum Viditur
Thank you webdeveloper.com for providing these nice backlinks: Fotografie | Home Server (no need to click, it's for spiders )
Originally posted by Mr J You could try using the target attribute
<script src=../scripts/xxx.js target="blank">
There are 4 reserved names:
_top
_self
_blank
_parent
Or you can supply a named window
target = window name
That would be as invalid as pointless.
Yes, you could step through all of your links and change each of the "href" values, but it would be easier and more accessible to just use absolute values where you can.
“The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
—Tim Berners-Lee, W3C Director and inventor of the World Wide Web
Originally posted by Charles
Yes, you could step through all of your links and change each of the "href" values, but it would be easier and more accessible to just use absolute values where you can. [/B]
One reason why i can't use absolute addressing is because the same seach script is running on three servers (and one intranet). The relative path points to a resource local to the server sending the reply.
A second reason is that the page must load in an intranet, where the absolute path is not available.
Quid Quid Latine Dictum Sit, Altum Viditur
Thank you webdeveloper.com for providing these nice backlinks: Fotografie | Home Server (no need to click, it's for spiders )
Use absolute URL's for the links, not the scripts.
“The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
—Tim Berners-Lee, W3C Director and inventor of the World Wide Web
Bookmarks