Javascript Compilation Error

It's about my page at . It displays a mock-up
of the Win95 system tray generated using Javascript. [Because of
limitations of Netscape tables (problems with cell colours of a nested
table), it is best viewed using Internet Explorer.]

And here's the problem. I've tried viewing using successive updates of
MS IE3, and it always works fine for me.

But I get this report from a surfer:
"I've tried your web page from work again, here's the JScript errors I
get. I'm using NT4 SP2 with IE3.01a through a firewall.

Microsoft JScript compilation error
[Line: 35] Invalid character document.write ("<IMG
SRC="\"tdg/trayd"+thisDay+".gif\""ALT=\"Image of tray\"
ALIGN=\"MIDDLE\" WIDTH=\"109\" HEIGHT=\"20\">  ");

Microsoft JScript runtime error
[Line: 105] 'table1' is undefined

Microsoft JScript runtime error
[Line: 142] 'caldar' is undefined

It seems that the backslash is causing the problem, but it is the
correct way, I think, of generating a " with document.write.

It also seems wrong that Explorer quotes the line wrongly; it is
  document.write ("<IMG SRC=\"tdg/trayd"+thisDay+".gif\" ALT=\"Image
of tray\" ALIGN=\"MIDDLE\" WIDTH=\"109\" HEIGHT=\"20\">  ");
(Explorer puts in extra quote marks).

I'm concerned that people viewing my page may be getting errors which
are not generated for me.

Can anyone advise me on this?

Many thanks!
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

No errors reported from: IE 3.02 NT4, no firewall

maybe it's the firewall ?? I've seen other strange errors with IE, like


is ok for IE,  except when the visitor is a "testuser" in the network, meaning that this user has no other rights then any visitor from outside would have. Visitors from outside do sometimes have the same error.


(the diference is using round brackets in stead of square)

is ok with all IE-visitors, but gives an error message in Netscape

Or maybe the user behind the firewall has an IE which is adapted, there are packages to build IE for e.g. intranet purposes. It offers possibilities to change some of the buttons and the IE-logo (i am not very sure what you can change, i just know that it exists).
document.write ("<IMG                     SRC="\"tdg/trayd"+thisDay+".gif\""ALT=\"Image of tray\"
ALIGN=\"MIDDLE\" WIDTH=\"109\" HEIGHT=\"20\"> ");

should be
document.write ("<IMG                     SRC=\"tdg/trayd"+thisDay+".gif\""ALT=\"Image of tray\"
ALIGN=\"MIDDLE\" WIDTH=\"109\" HEIGHT=\"20\"> ");
you had one too many dowble quote marks.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Thanks moorep. Comments - it was the compiler report that added the extra quotation mark, which is not on my page which says: document.write ("<IMG SRC=\"tdg/trayd"+thisDay+".gif\" ALT=\"Image of tray\" ALIGN=\"MIDDLE\" WIDTH=\"109\" HEIGHT=\"20\"> ");
I had simply taken an HTML line, put \ before any quotation marks and turned it into a document.write line.
From your comment, is it correct that a single quote ' can be used in place of " to get round this?
The only other thing is - why have I only had one report of this error from a surfer - it works fine on my MSIE3.02 - why should it not work for all?
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.