Technical Note: Spinoff Links vs. IE6

Charles Johnsonfollow me on twitter
Fri Jan 11, 2008 at 5:22 pm PST • Views: 148

If you’re using Internet Explorer version 6, and you’ve been having problems with our spinoff links feature, I’m glad to announce that those IE6-related problems are now mostly debugged.

For the techies amongst us, the main reason for the problems was IE6’s annoying lack of support for the “selected” attribute of <option> elements. If you try to set that attribute you get one of those patented IE6 cryptic script errors. And since I’m dynamically reloading the category list with each refresh of the spinoff links areas, I need to set the selected option—especially in the top rated links area.

The solution is to set the “selectedIndex” attribute of the parent <select> element instead, to a zero-based index of the selected option’s position within the drop-down menu. Which sounds kind of gnarly, but actually was pretty easy to implement once I understood the source of the problem.

Luckily, Firefox and Safari also work with the “selectedIndex” method, because they know how to play well with others. Unlike that fershlugginer IE6.

Oh yes, about that “mostly debugged” part: there are still some non-critical display issues, because IE6 doesn’t correctly resize its <select> elements when they’re re-stuffed with <option> elements via Javascript. Still checking into that one.

Advertisement

106 comments

^ back to top ^

Name:

Pass:

Register Forgot Your Password? Account Settings Re-send Confirmation (To log in, cookies must be enabled in your browser!)

Turn off ads by subscribing!
For about 33 cents a day, our subscription option turns off all advertisements at LGF!
Read more...


► LGF Headlines

  • Loading...

► Tweeted Articles

  • Loading...

► Tweeted Pages

  • Loading...

► Top 10 Comments

  • Loading...

► Bottom Comments

  • Loading...

► Recent Comments

  • Loading...

► Tools/Info

► LGF Hits

► Resources

► Never Forget

► Statistics

► Tag Cloud

► Contact

You must have Javascript enabled to use the contact form.
Your email:

Subject:

Message:


Messages may be published in our weblog, unless you request otherwise.
Tech Note:
Using the Contact Form

More Partners

Compare Electricity Prices in your area. Texas Electricity is deregulated; you have the right to choose Texas Electric Rates from among many Texas Electric Companies.

Flying monkeys from the dark side.

TwitterFacebook
LGF Pages
Recent Pages

Bob Dillon
Weapons: Neutering Ammonium Nitrate
6 minutes ago
Views: 4 • Comments: 0
Tweets: 0 • Rating: 0

Randall Gross
Stabenow Up 14 on Hoekstra as Ad Backfires - Public Policy Polling
42 minutes ago
Views: 48 • Comments: 0
Tweets: 0 • Rating: 0

Randall Gross
Youth for Western Civilization Takes 'Patriot' Plunge
52 minutes ago
Views: 46 • Comments: 0
Tweets: 0 • Rating: 0

Randall Gross
'Sovereign Citizen' Sues Government Over Grammar
56 minutes ago
Views: 58 • Comments: 0
Tweets: 0 • Rating: 0

Randall Gross
Apple 'Determined' to Improve Conditions at Plants in China
1 hour, 16 minutes ago
Views: 47 • Comments: 0
Tweets: 0 • Rating: 0

Randall Gross
Something From Nothing - a Conversation W/ Richard Dawkins & Lawrence Krauss
1 hour, 18 minutes ago
Views: 53 • Comments: 0
Tweets: 0 • Rating: 0

researchok
California's Demographic Revolution
4 hours, 42 minutes ago
Views: 91 • Comments: 0
Tweets: 0 • Rating: 2

researchok
The Folly of Internet Freedom: The Mistake of Talking About the Internet as a Human Right
4 hours, 45 minutes ago
Views: 67 • Comments: 0
Tweets: 0 • Rating: 2

researchok
Supreme Makeover
4 hours, 48 minutes ago
Views: 61 • Comments: 0
Tweets: 0 • Rating: 0

researchok
A Pattern Emerges
4 hours, 48 minutes ago
Views: 66 • Comments: 0
Tweets: 0 • Rating: 0

 Frank says:

You think our music- the Monkees music is banal and insipid?" -- Frank replying to Mike Nesmith on an episode of "The Monkees" on which Frank and Mike pretended to be each other for several minutes before the opening theme.