Referencing a local file after setting BASE URL

Discussion in 'HTML' started by Kevin Morgan, May 16, 2005.

  1. Kevin Morgan

    Kevin Morgan Guest

    Once I've set the BASE URL tag in the <HEAD> element, how do I then
    reference local resources within th html file?

    I'm writing a widget that displays the latest posts from a forum on a
    remote site. I've set the BASE tag to that site so that the links work
    ok. Problem is, I need to include some local images. Is there any way
    around this?

    Kev
     
    Kevin Morgan, May 16, 2005
    #1
    1. Advertisements

  2. Kevin Morgan

    Amos E Wolfe Guest

    "Kevin Morgan" wrote:

    > I'm writing a widget that displays the latest posts from a forum on a
    > remote site. I've set the BASE tag to that site so that the links work ok.
    > Problem is, I need to include some local images. Is there any way around
    > this?
    >


    Unfortunately BASE can only be specified once in the html document. If the
    BASE has been set to something other than the local directory you can access
    local files by simply giving the full URL (including the http:// or
    whatever) instead of just the "relative" filename.

    -=# Amos E Wolfe #=-
     
    Amos E Wolfe, May 16, 2005
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jon paugh
    Replies:
    1
    Views:
    1,372
  2. Mike Taylor
    Replies:
    2
    Views:
    937
    Mike Taylor
    Jul 23, 2004
  3. =?Utf-8?B?WVNVVA==?=

    Access local port or Running local exe file

    =?Utf-8?B?WVNVVA==?=, Jan 14, 2006, in forum: ASP .Net
    Replies:
    0
    Views:
    673
    =?Utf-8?B?WVNVVA==?=
    Jan 14, 2006
  4. Lyndon
    Replies:
    1
    Views:
    691
    Leonard Blaisdell
    Jul 25, 2005
  5. Replies:
    6
    Views:
    554
  6. matt
    Replies:
    1
    Views:
    1,094
    Flinky Wisty Pomm
    Oct 31, 2006
  7. SMH
    Replies:
    0
    Views:
    690
  8. Just D.
    Replies:
    0
    Views:
    836
    Just D.
    Aug 11, 2004
Loading...