Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IE6 vs IE7

Status
Not open for further replies.

NFI

Programmer
Joined
Jun 7, 2000
Messages
278
Location
GB
Hello,

...so I got all my script working fine on my machine, uploaded it to my webhost and now it throws "object not found" errors whenever anybody browses to it :(

The only difference is that I'm using IE6 and everybody going to it is using IE7...if I browse to it with IE6, it works fine!

So, I know this is a bit of a vague one, but what's the difference between IE6 and IE7 that's causing it to, as far as I can see, ignore all my script?


Thanks,

Paul
 
Since IE7 is more compliant that IE6, I think the problem comes with referencing your ID's.

Use document.getElementById("idName") for each referece to an object in your javascript.

I can't say for sure, cause I don't have IE7, it's too high tech for this POS computer.

[monkey][snake] <.
 
I think you're spot on there, monksnake... It's one of those classic IE 'shortcuts' that only serves to make bad developers (unfortunately, not always of their choosing, but because of old documents and code that hang around).

Dan



Coedit Limited - Delivering standards compliant, accessible web solutions

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Thanks chaps - I'll tidy up my code and try again in that case :)

Thanks for figuring out which bit didn't work, too...it probably would have been more helpful if I'd said :)

Paul
 
...still no luck :(

I've changed all my id references to use document.getElementById but IE7 still complains that none of my functions are defined :(

Paul
 
I've changed all my id references to use document.getElementById

No you ahven't... there are a shedload still left, e.g.:

Code:
tn1.height=

instead of:

Code:
document.getElementById('tn1').height=

Dan



Coedit Limited - Delivering standards compliant, accessible web solutions

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
And btw - I [!]really[/!] detest any sites that presume I want my browser window resized. If I want my window resized, I'll do it myself. What gives you the right to dictate to us what size we should have our window?

Dan

Coedit Limited - Delivering standards compliant, accessible web solutions

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
I think you're right about this being related to compliance, but I can't for the life of me see where I've got it wrong...I'm just going to rewrite the whole thing in php and put this one down to experience.

All the best,

Paul
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top