469,271 Members | 1,557 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,271 developers. It's quick & easy.

debugging IE7

I have a script which is working fine in Firefox and until recently
worked in IE7 too. I have been working on the script and decided to
test it on my wife's XP laptop and, lo and behold, it no longer works
with IE7. With Firefox debugging is simple using Firebug but what does
one use in IE7? I get a warning in the bottom left which say "Error on
the page" (actually "Fehler auf der Seite" as my wife's laptop has
German Windows installed but I will try and translate the warnings as
I don't know exactly what an English version would say.). When I
double click on this warning a popup appears with the following,
insufficient, information:
Row:163, Zeichen:5, Error: "The object doesn't support this method",
Code:0, URL:http://members.chello.at/stephen.joung/testsite/
indexMW_Distance20.html

But the HTML file doesn't even have 163 rows and the js file has no
problems around row 163 that I can see.

For any of you who have experience of this I link to the html and js
pages in the hope that you can help find the problem.

http://members.chello.at/stephen.jou...istance20.html
http://members.chello.at/stephen.jou...linkeng20.html

Regards,

Steve
Jul 28 '08 #1
3 1310
On Jul 28, 4:51 am, Steve <stephen.jo...@googlemail.comwrote:
>
For any of you who have experience of this I link to the html and js
pages in the hope that you can help find the problem.

http://members.chello.at/stephen.jou...linkeng20.html
Sorry, the js file is at

http://members.chello.at/stephen.jou...e/linkeng20.js

Jul 28 '08 #2
Steve wrote:
Row:163, Zeichen:5, Error: "The object doesn't support this method",
Code:0, URL:http://members.chello.at/stephen.joung/testsite/
indexMW_Distance20.html
Correct

function load() {
linkA= readCookie('linka');
linkB= readCookie('linkb');

to

function load() {
var linkA = readCookie('linka');
var linkB = readCookie('linkb');

that should help. Currently you are trying to assign to linkA/linkB
which are HTML element objects in IE's DOM.

--

Martin Honnen
http://JavaScript.FAQTs.com/
Jul 28 '08 #3
On Jul 28, 1:22 pm, Martin Honnen <mahotr...@yahoo.dewrote:
Correct

function load() {
linkA= readCookie('linka');
linkB= readCookie('linkb');

to

function load() {
var linkA = readCookie('linka');
var linkB = readCookie('linkb');

that should help. Currently you are trying to assign to linkA/linkB
which are HTML element objects in IE's DOM.
Many thanks Martin, that was indeed the problem.

Best regards, Steve.
Jul 28 '08 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

16 posts views Thread by Serdar Kalaycý | last post: by
2 posts views Thread by Andy Fish | last post: by
2 posts views Thread by Alex Clark | last post: by
5 posts views Thread by Velvet | last post: by
6 posts views Thread by KevinGPO | last post: by
5 posts views Thread by =?Utf-8?B?Z2FkeWE=?= | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.