Technical Note: Spinoff Links vs. IE6

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

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? 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

► 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.

Who needs oil? we ride the bus!

TwitterFacebook
LGF Pages
Recent Pages

Randall Gross
Mitt Romney: Little to Like: DNC Spoofs Romney Facebook Timeline
56 minutes ago
Views: 40 • Comments: 0
Tweets: 0 • Rating: 0

researchok
French Philosopher Alain Badiou on the Real Expression of Love: 'If You Limit Yourself to Sexual Pleasure It's Narcissistic'
5 hours, 5 minutes ago
Views: 68 • Comments: 0
Tweets: 0 • Rating: 0

Haywood Jabloeme
Closing the Racial and Generational Divides
8 hours, 54 minutes ago
Views: 79 • Comments: 0
Tweets: 0 • Rating: 1

Channeling Confucius
The International Response to Syria After the Houla Massacre
10 hours, 47 minutes ago
Views: 89 • Comments: 0
Tweets: 0 • Rating: 0

Aziz Poonawalla
I Speak for Myself: All-American
12 hours, 50 minutes ago
Views: 122 • Comments: 0
Tweets: 0 • Rating: 5

Aigle
Mainliners Speak Truth to Jewish, Not Arab and Muslim Power
17 hours, 7 minutes ago
Views: 336 • Comments: 10
Tweets: 0 • Rating: -5

Mostly sane, most of the time.
So wake up and notice already
2 days, 8 hours ago
Views: 289 • Comments: 0
Tweets: 2 • Rating: 7

Daniel Ballard
Late Afternoon Light-Kalanchoe
3 days, 12 hours ago
Views: 265 • Comments: 0
Tweets: 0 • Rating: 5

Eclectic Infidel
City College of San Francisco Budget Update
3 days, 13 hours ago
Views: 311 • Comments: 0
Tweets: 0 • Rating: 2

MichaelJ
Apple TV Slated to Debut in December?
4 days, 19 hours ago
Views: 368 • Comments: 0
Tweets: 0 • Rating: 1

 Frank says:

Kill ugly radio.