Page Error
While my page actually displays fine to my knowledge, I get a browser page error warning on one of my pages and I can't figure out why. Can you check out this page and tell me if you know why it's giving me the error icon in the bottom left corner of my IE browser. I know of lots of minor coding errors I made a long time ago (like instead of ) that would screw up a validator... but shouldn't give me any page error warning. Anybody see what's causing it?
Thanks!
Greg K posted this at 05:27 — 17th December 2003.
He has: 2,145 posts
Joined: Nov 2003
I went to the page and did a "Save As" to get a local copy. IE seems to change some things around when you do that, so you may have to do this as well to find what I am refering to. (The saved copy doesn't match the "View Source")
In doing the View Source, on line #17, there is the following:
<script language="JavaScript" type="text/javascript" src="/pphlogger.js"></script>
<noscript><img alt="" src="http://www.mikesussman.com/pphlogger/pphlogger.php?id=mikesussman&st=js"></noscript>
On the copy from the Save As, just removing these two line eliminated the error, so I looked in the pphlogger.js file. (BTW, the code in the noscript, you have it displaying an image, which calls a php file, that feeds out what looks like javascript code?)
FIrst thing I did was comment out the whole file, and again, no errors. Since the error being reported (in IE at least) said line 2, I commented out the top section, and again, no error. Finally, I tracked it to line 13:
id = "mikesussman";
'All I had to do was comment this one line out, and IE stopped reporting an error. The only thing I could think of was that "ID" is some reserved word, so I tested it by renaming it to "TestID" and the error went away.
I know this doesn't help solve the real problem, as I just downloaded that program you are using, and sure enough, in the original file it uses the variable "ID".
Is the one on your site one you edited by hand? I see the comments above state not to do this. Maybe write to the people who made it for help.
Sorry I couldn't be exact, but hope this helped narrow it down for you.
-Greg
fifeclub posted this at 05:43 — 17th December 2003.
He has: 688 posts
Joined: Feb 2001
Thanks. I couldn't figure it out because that script you mentioned is on every page and no other errors. But you may be on to something there where the variable is interfering with something in that particular page (a blog). I'll look into that more, thanks.
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.