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
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