Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Apr 20th, 2006, 10:49 PM   #31
Writlaus
Hobbyist Programmer
 
Writlaus's Avatar
 
Join Date: Nov 2005
Posts: 149
Rep Power: 3 Writlaus is on a distinguished road
Okay, I think I've decided what I'm going to do. I'm going to write or find a simple page that uses document.getElementById that works in IE, and slowly change it to make it an exact clone of the page that my server returns. Eventually, I'll see where the problem lays.

In the mean time, any insights would still be helpful.
Writlaus is offline   Reply With Quote
Old Apr 20th, 2006, 11:57 PM   #32
The Dark
Expert Programmer
 
Join Date: Jun 2005
Posts: 824
Rep Power: 4 The Dark is on a distinguished road
The error is on this line:
        item=document.getElementById(id);
However the error is not in the "document.getElementById(id);" part, it is in the "item=" part.

The variable item already has a value from previous function calls you have made, so when you are assigning to it, the JavaScript code actually tries to set the default property of "item" to the new value.

One way to fix this is to use
  var item=document.getElementById(id);
To make item a local variable of the function.
The Dark is offline   Reply With Quote
Old Apr 21st, 2006, 12:44 AM   #33
Writlaus
Hobbyist Programmer
 
Writlaus's Avatar
 
Join Date: Nov 2005
Posts: 149
Rep Power: 3 Writlaus is on a distinguished road
Wow.

I found that out just now and was coming back to post to say I had, lmao. Thanks to everyone who sat through it, and thanks to The Dark.

The site works fine in IE now.
Writlaus is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 1:48 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC