Script Not Working in IE6 on XP

J

Jim Bond

Hi again,

I've just run across a problem which I'm unsure of.

The following script works perfectly well on all the browsers I've
tested, with the exception of IE 6 on Windows XP
(6.0.2800.1106.xpsp2.030422-1633):


function setVisible(lyrName){
var map=top.mapwindow.document.applets['mapApplet'].getMap();
var lyr=map.getLayer(lyrName);
lyr.visible=!lyr.visible;
map.extentChanged();
map.repaintMap();

var map=top.mapwindow.document.applets['mapApplet'].getMap();
}


The script is called like this:

<INPUT TYPE="checkbox" NAME="foo" onClick="setVisible('foo')">

As I say, this works perfectly fine on each of the browsers I've tested,
however in IE 6 on XP it returns an "Unspecified Error":

Line: 50
Char: 1
Error: Unspecified Error
Code: 0

Any suggestions? Google didn't seem to provide any solutions.

FWIW, this script is working with a Java applet. The XP machine is
using the Sun VM whereas all the other machines (so far as I know) are
using the Microsoft VM.

Thanks.
Jim
 

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

Forum statistics

Threads
474,085
Messages
2,570,597
Members
47,218
Latest member
GracieDebo

Latest Threads

Top