java error in IE6 but not Firefox

R

Randy Webb

Mark D Smith said the following on 12/16/2005 11:54 AM:
Hi

anyone know what the java error is on this page?
http://www.s-nta.org.uk/index.html


Yes, it is an error produced by the browser to indicate that whoever
wrote that script didn't bother to learn what they were doing. Besides,
there is no Java in that page that I see. Some crappy Javascript though.
 
M

Mark D Smith

Randy Webb said:
Mark D Smith said the following on 12/16/2005 11:54 AM:


Yes, it is an error produced by the browser to indicate that whoever
wrote that script didn't bother to learn what they were doing. Besides,
there is no Java in that page that I see. Some crappy Javascript though.
http://www.JavascriptToolbox.com/bestpractices/

Its not me that wrote the code or the site, just trying to help the site
owner.
i always get java / JavaScript mixed up.
so do you have any ideas what's wrong and how to fix it?

Mark
 
V

VK

error in IE6 but not Firefox

If something doesn't work - blame on IE ;-)

It doesn't work in any browser, just IE is more "visual" - the red sign
in the status.

All browsers complain that 'wp_menus' is undefined and it is indeed
undefined.

You assign:
var wp_menubar0 = new wp_menus();
in the page script but neither on the page nor in libraries you don't
have a matching constructor.

Also note that you shouldn't change protototype of something you did
not create yet:
....
menus.prototype.m_widthOfImage = 0;
menus.prototype.m_type = 0;
function menus() {}
....

Also your document contains some binary trash before <title>. In
Firefox it looks like [square]>>[square] at the top of the page.
Usually such "trash combination" appears if one tried to read a binary
file as text stream. Have no idea about your situation but it should be
fixed.
 
M

Mark D Smith

Ian said:
Use Tools->JavaScript Console if Firefox to see the errors.

Ian

Thanks for that.

I have past the problem back to the author of the site as i do not know
where he got the JavaScript but i googled the jsmenu.js and found a
reference to a serif forum which as i know he uses serif i have past the
info on to him.

Mark
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top