Technical Note: Spinoff Links vs. IE6

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

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.

You gonna eat that potato?

TwitterFacebook
LGF Pages
Recent Pages

researchok
'I Was Looking Forward to a Quiet Old Age': Instead, Etta Shiber, Helped Smuggle Stranded Allied Soldiers To Freedom
3 hours, 24 minutes ago
Views: 53 • Comments: 0
Tweets: 1 • Rating: 0

Daniel Ballard
Late Afternoon Light-Kalanchoe
11 hours, 5 minutes ago
Views: 98 • Comments: 0
Tweets: 0 • Rating: 4

MikeySDCA
Colin Powell Endorsed Same-Sex Marriage Once It Was Safe, More Evidence He's Hardly a Great Leader.
11 hours, 9 minutes ago
Views: 124 • Comments: 1
Tweets: 0 • Rating: 1

Eclectic Infidel
City College of San Francisco Budget Update
11 hours, 58 minutes ago
Views: 113 • Comments: 0
Tweets: 0 • Rating: 0

Michael McBacon
Kansas governor signs 'Shariah bill' to ban Islamic law
16 hours, 28 minutes ago
Views: 223 • Comments: 6
Tweets: 0 • Rating: 5

Aigle
National Geographic Traveler Veers Off Track
1 day, 16 hours ago
Views: 447 • Comments: 7
Tweets: 0 • Rating: -5

MichaelJ
Apple TV Slated to Debut in December?
1 day, 17 hours ago
Views: 221 • Comments: 0
Tweets: 0 • Rating: 1

Ascher
Israeli Who Saved Turk on Everest: You Never Abandon a Friend - Israel News, Ynetnews
1 day, 18 hours ago
Views: 296 • Comments: 1
Tweets: 0 • Rating: 3

Haywood Jabloeme
The Harrassment of Patterico & Its Roots in Left-Wing Activism
1 day, 19 hours ago
Views: 516 • Comments: 2
Tweets: 0 • Rating: 4

Curt
Brian Banks: (Video) Falsely accused of rape speaks out
1 day, 21 hours ago
Views: 269 • Comments: 2
Tweets: 0 • Rating: 5

 Frank says:

When we talk about artistic freedom in this country We sometime lose sight of the fact that freedom is often dependent on adequate financing.