[thesite] [Bug] Member bios

.jeff jeff at members.evolt.org
Mon Jan 28 14:13:00 CST 2002


madhu,

><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> From: Madhu Menon
>
> Um, might I ask why we have a <base> tag?
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

so that relative links work properly -- ie, stylesheet, images, external
javascript files, etc.

><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> I don't think <base href="http://evolt.org/evolt/"> will
> work properly.  IIRC, you can only specify the base
> domain name, not a directory on the site. So <base
> href="http://evolt.org/evolt/"> is the same as <base
> href="http://evolt.org/">
>
> [tests locally to be sure]
>
> Yep, I'm right.
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

no, actually you're wrong.  i've used this for quite some time and it's
worked without fail.

to prove my point, go take a quick peek at w.e.o.  find an image that you
want to view by itself.  view the source of the page.  note the path in the
html for the image and try to view it in your browser (without taking into
account the <base> tag).  notice it doesn't come up?  now try taking into
account the <base> tag and see that it works.

><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> So... what does the <base> tag accomplish that using
> proper relative URLs like "/someFolder/someURL.html"
> won't?
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

it keeps us from having to preface *all* sourced in document links with
"/evolt" -- a task that could be easily forgotten in the editing process.

no worries though, v3.0 will not use the <base> tag as the mechanism for
creating sites using directly-style urls has been highly refined since i
first introduced it with v2.0 and no longer relies on the <base> tag.

thanks,

.jeff

http://evolt.org/
jeff at members.evolt.org
http://members.evolt.org/jeff/





More information about the thesite mailing list