W
Win, Pats
I have a snippet of HTML that I inject into a number of pages throughout my
Web site at runtime. My problem is that I'm not getting the image to appear
in all documents into which this snippet is injected.
If I specify a document-relative path (e.g.,
src="../someFolder/AnotherFolder/TheGraphic.gif"), then it works fine, but
only for documents that exist at the [someFolder] level in the directory
structure.
I thought I could use a root-relative path, as follows, in order for the
image to appear on all documents throughout my site:
<img src="/someFolder/AnotherFolder/TheGraphic.gif">
But that doesn't seem to work.
How can I specify the src attribute value in order to have the image show up
correctly on all documents - regardless of the documents location in the
site's folder hierarchy?
Please note that I'm building one simple HTML string that is the same for
all pages into which it is injected - so there is no opportunity or desire
to inject a different string per document.
Thanks!
Web site at runtime. My problem is that I'm not getting the image to appear
in all documents into which this snippet is injected.
If I specify a document-relative path (e.g.,
src="../someFolder/AnotherFolder/TheGraphic.gif"), then it works fine, but
only for documents that exist at the [someFolder] level in the directory
structure.
I thought I could use a root-relative path, as follows, in order for the
image to appear on all documents throughout my site:
<img src="/someFolder/AnotherFolder/TheGraphic.gif">
But that doesn't seem to work.
How can I specify the src attribute value in order to have the image show up
correctly on all documents - regardless of the documents location in the
site's folder hierarchy?
Please note that I'm building one simple HTML string that is the same for
all pages into which it is injected - so there is no opportunity or desire
to inject a different string per document.
Thanks!