Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Referencing a local file after setting BASE URL

Reply
Thread Tools

Referencing a local file after setting BASE URL

 
 
Kevin Morgan
Guest
Posts: n/a
 
      05-16-2005
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



 
Reply With Quote
 
 
 
 
Amos E Wolfe
Guest
Posts: n/a
 
      05-16-2005
"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 #=-


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Referencing UserControl on a master page when using a Base class for all pages SMH ASP .Net 0 05-07-2009 12:44 PM
Referencing Page Controls from the Codebehind's Base Class in ASP.NET 2.0 matt ASP .Net 1 10-31-2006 02:25 PM
Referencing the base method halfpeaw@gmail.com Java 6 07-19-2006 05:52 AM
Playing a local mpeg file from a local HTML file... Lyndon HTML 1 07-25-2005 02:21 AM
Problem referencing IPrincipal from my base page class... Mike Taylor ASP .Net 2 07-23-2004 07:01 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57