Recommend
 
 Thumb up
 Hide
6 Posts

BoardGameGeek» Forums » BoardGameGeek Related » BGG General

Subject: Javascript error with Microbadge buy page rss

Your Tags: Add tags
Popular Tags: microbadge [+] [View All]
Eddie Mittelstedt
United States
Hampstead
Maryland
flag msg tools
badge
Avatar
mbmbmbmb
On Microbadge purchase page
http://www.boardgamegeek.com/profile.php?action=buymicrobadg...

using IE 6, the + icons don't expand each category, but instead spit out a Javascript error.

Line: 66
Char: 5
Error: Unknown runtime error
 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
Eddie Mittelstedt
United States
Hampstead
Maryland
flag msg tools
badge
Avatar
mbmbmbmb
Yep, that's exactly the problem I posted, but you put it much more eloquently!
 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
Hammock Backpacker
United States
Columbus
Ohio
flag msg tools
Hot Coffee...Mmmmmm
badge
Go Take A HIke!
Avatar
mbmbmbmbmb
Quote:


if ( dom.display == 'none' )
{
dom.display = 'block';
if ( toggle )
toggle.innerHTML = ...




The error is coming from the toggle.innerHTML assignment in the Toggle function.

I'm not sure IE will let you change the innerHTML of a DOM node while processing an event within the context of that same node.
 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
Scott Alden
United States
Dallas
Texas
flag msg tools
admin
badge
Aldie's Full of Love!
Avatar
mb
Strange - this is the exact code that I use on the front page. I'll check it out.
 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
Front Page | Welcome | Contact | Privacy Policy | Terms of Service | Advertise | Support BGG | Feeds RSS
Geekdo, BoardGameGeek, the Geekdo logo, and the BoardGameGeek logo are trademarks of BoardGameGeek, LLC.