base href fun!

For general rambling.
Post Reply
VLSmooth
Tenth Dan Procrastinator
Posts: 3055
Joined: Fri Jul 18, 2003 3:02 am
Location: Varies
Contact:

base href fun!

Post by VLSmooth »

I've been recently fiddling with the base href html tag to eliminate repetitiveness, especially with external links. Too bad it single-handedly destroys portability. Or does it?

The question is, can a base href be undone? So far, My only hack for it is to <base href="."> when I want relative links again, but that still prepends a stupid "http://./" to all affected links. Bleh.

Jonathan
Grand Pooh-Bah
Posts: 6722
Joined: Tue Sep 19, 2006 8:45 pm
Location: Portland, OR
Contact:

Post by Jonathan »

answer: how many repetitive outside links do you have, anyway?

VLSmooth
Tenth Dan Procrastinator
Posts: 3055
Joined: Fri Jul 18, 2003 3:02 am
Location: Varies
Contact:

Post by VLSmooth »

Quite a few, since my design spans three components, each of which are kept in a different directory tree. I'm sticking with huge a href's since I don't want to mess with it. It just annoys me that justifying/wrapping to 80 characters (I use alt-q) is often jagged with long links.

VLSmooth
Tenth Dan Procrastinator
Posts: 3055
Joined: Fri Jul 18, 2003 3:02 am
Location: Varies
Contact:

Post by VLSmooth »

Some quickies:

Yes, I write all of my HTML in xemacs (with a modified HTML environment).

Yes, I tried Mozilla Composer, which still added crap I didn't want.

No, we don't have dreamweaver licenses, which are ~$900 a pop.

Yes, I tried various shareware editors, none of which have the indenting goodness of xemacs.

No, I don't use MS Word, Publisher, or that ilk. Heck, I even avoid notepad thanks to the annoying carriage return differences between unix and windows.

Yes, people have modified my peer reviews in word before.

Yes, it is a pain to fix the HTML afterwards.

Whee!
Last edited by VLSmooth on Wed Sep 03, 2003 11:46 pm, edited 1 time in total.

Jonathan
Grand Pooh-Bah
Posts: 6722
Joined: Tue Sep 19, 2006 8:45 pm
Location: Portland, OR
Contact:

Post by Jonathan »

uh, i think your option is to suck it up.

unless you're doing a goopy interface on your site, you don't want a wysiwyg editor, anyhow.

quantus
Tenth Dan Procrastinator
Posts: 4891
Joined: Fri Jul 18, 2003 3:09 am
Location: San Jose, CA

Post by quantus »

I'm thinking that you might be saved with some java script... You could just make a function that takes an argument describing the destination and points to the location you want. You can even use variables for the common parts of the paths so you don't have to repeatedly type them.

VLSmooth
Tenth Dan Procrastinator
Posts: 3055
Joined: Fri Jul 18, 2003 3:02 am
Location: Varies
Contact:

Post by VLSmooth »

Heh, sounds frighteningly like an earlier idea I had:

1) Write code with custom tags
2) Replace custom tags with approriate tags via perl

In other words, write in a new language of my own design and create a converter/compiler for HTML.

Still tempted to try that... or CSS. Then again, I have to be careful since various people use IE, Mozilla, and Netscape here.

Jonathan
Grand Pooh-Bah
Posts: 6722
Joined: Tue Sep 19, 2006 8:45 pm
Location: Portland, OR
Contact:

Post by Jonathan »

glish.com

alistapart.com

bluerobot.com

VLSmooth
Tenth Dan Procrastinator
Posts: 3055
Joined: Fri Jul 18, 2003 3:02 am
Location: Varies
Contact:

Post by VLSmooth »

Argh, make them links. You're attempting to defy the natural order of laziness -_-

Post Reply