AFAIK, it should at least work from IE 5+ (perhaps IE 4 as well), and I
know
that it works from Netscape 6+...
I believe it's supposed to work in Netscape 4, but I've recieved errors
in Netscape 4 that says that try
is a reserved keyword (which is of cours true, to be used in the
try..catch statement)...
/Robert
-----Ursprungligt meddelande-----
Fr=E5n: Hordur Kr. Heidarsson [mailto:eight@s...]
Skickat: den 22 oktober 2002 10:11
Till: javascript
=C4mne: [javascript] Re: SV: RE: Preventing 'Access is denied'
Ok, thanks.. try...catch works :)
...but do you know what browsers support the try...catch syntax?
Hordur
> Yep,=3D20
try..catch is the way to go...
http://developer.netscape.com/docs/manuals/js/core/jsref15/stmt.html#105
1663
And if this doesn't work for you, try window.onerror
http://msdn.microsoft.com/workshop/author/dhtml/reference/events/onerror
.asp
/Robert
-----Ursprungligt meddelande-----
Fr=3DE5n: Teng-Fong SEAK [mailto:tfseak@f...]=3D20
Skickat: den 21 oktober 2002 17:14
Till: javascript
=3DC4mne: [javascript] RE: Preventing 'Access is denied'
> -----Message d'origine-----
> De : H=3DF6r=3DF0ur Kristinn Hei=3DF0arsson [mailto:eight@s...]
=3D
Envoy=3DE9 :=3D20
> lundi 21 octobre 2002 17:12 =3DC0 : javascript
> Objet : [javascript] Preventing 'Access is denied'
>=3D20
>=3D20
> Hi
> =3D20
> Is there any way to check if other frames are accessible, without=3D20
>causing an error?
Try to use
try {....} catch {...}
syntax.
> I'm trying to get the referrer from the top page of a frameset, but
>when other frame pages open this frameset page in their frame, I get
>an error, causing the rest of the script not to be run.
> =3D20
> Anyone familiar with this problem?
> =3D20
> Thanks,
> Hordur
>=3D20
>=3D20
>=3D20
> ---
>=3D20
---
Improve your web design skills with these new books from Glasshaus.
Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=3Dnosim/theprogramm
e
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=3Dnosim/theprogramm
e
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=3Dnosim/theprogramm
e
r-20