The eclectic musings of a bitter software engineer.

The InfoBox is your god

Friday February 14, 2003 @ 04:38 PM (PST)

Users of Mozilla, Opera 7 and possibly Konqueror and Safari will notice an interesting new feature: the [This is an InfoBox.|InfoBox]. The InfoBox is an annoying little box that will pop up when you move your mouse over any text underlined with a dotted line, like [Pie|this]. The idea is for me to be able to explain (or illustrate via an image) a word, reference or person's name without halting the flow of my skillfully-crafted narrative. I've added InfoLinks to a few of the articles below to give you an idea of how I intend to use them.

As for you poor Internet Explorer users, InfoBox support will be spotty and broken because you've chosen to use a browser that does not properly support DOM2 and I'm not going to break this site's standards compliance in order to fix your browser's incompetence. [This is a damn lie. I'm not really sorry at all. Ha ha!|Sorry].

Comments

for the record, I'm using IE 6.x and your Infobox madness works fine. So much for your cackling, maniacal attempt at foiling my plans for world domination.

Back to the volcano hide-out for me.

M
Friday February 14, 2003 @ 06:11 PM (PST) Posted by IronicCheese

You'll be real disappointed when you scroll the page down and then try using an InfoBox. IE6 is broken. So there. Ha!

Friday February 14, 2003 @ 10:42 PM (PST) Posted by wonko

Works fine in IE 5.2.2 on Mac OS X even after scrolling down.

Saturday February 15, 2003 @ 07:57 AM (PST) Posted by DomitianX

I should have pointed out that only IE6 will be broken. The reason is that when IE6 sees a DOCTYPE tag, it puts itself into "standards compliant" mode. The problem is, what Microsoft calls "standards compliant" mode really just means that IE stops doing all the bad stuff it shouldn't have been doing to begin with, but it doesn't implement many very important DOM2 features. The result is that, while there's a way to make Opera and older versions of IE do what I want, the only way to make IE6 do what I want would be to remove the page's DOCTYPE tag, and I don't want to do that.

Saturday February 15, 2003 @ 10:45 AM (PST) Posted by wonko

Um, ok.. infoboxes are cool.. now if only they would show up on TOP of the other text so that they are readable or viewable. Just a little suggestion. problem occurs in IE 6 and opera 7. I don't have other browsers to test with.

Tuesday February 18, 2003 @ 06:58 PM (PST) Posted by Da5id

Fixed.

Tuesday February 18, 2003 @ 08:36 PM (PST) Posted by wonko

Have scanned doctored past posts. I see that you intend to use them as VH1 pop-ups "Behind the Blogging"

Tuesday February 18, 2003 @ 08:53 PM (PST) Posted by Eilonwy

Exactly. Or they could turn out to be more trouble than they're worth. Probably the latter. We'll see.

Tuesday February 18, 2003 @ 10:38 PM (PST) Posted by wonko

I guess the infoboxes get displayed in IE6, alright, they just don't get positioned where they should be. If the infobox links are at the top of a page, they get displayed at the correct location, but if you have to scroll down to hover over the links, the infoboxes get positioned too high up, and possibly above the viewable area altogether. It seems that the IE6-problem is one of offset rather than appearance.

Tuesday February 18, 2003 @ 11:10 PM (PST) Posted by GreyStork
Exactly. The problem stems from the fact that IE (and Opera) implement a broken method of retrieving the mouse cursor position via the DOM. Specifically, they give you the cursor position relative to the top of the document, no matter whether the page is scrolled. Mozilla (and Netscape 4, ironically) properly give you the cursor position relative to the window, which is not affected by scrolling.

But IE6 does something else stupid. While Opera lets you retrieve the number of pixels that the document has been scrolled (which number can then be added to the reported mouse position to get the actual mouse position), IE6 only lets you do this if the page doesn't have a DOCTYPE tag. And of course, if the page doesn't have a DOCTYPE tag, it's not standards-compliant. And since I'm a stickler for compliance, the DOCTYPE tag stays and IE6 is broken, whereas IE5, Opera, and maybe even IE4 will work just fine.

It's a sorry state of affairs.

Tuesday February 18, 2003 @ 11:27 PM (PST) Posted by wonko
Post a comment

Basic XHTML (including links) is allowed, just don't try anything fishy. Your comment will be auto-formatted unless you use your own <p> tags for formatting. You're also welcome to use Textile or Markdown.

Don't type anything here unless you're an evil robot:


And especially don't type anything here:

Copyright © 2002-2008 Ryan Grove. All rights reserved.
Powered by Thoth.