Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: SV: RE: Preventing 'Access is denied'


Message #1 by "Robert Nyman" <robert.nyman@c...> on Tue, 22 Oct 2002 10:28:06 +0200
hi,
   try catch syntax  will work only with IE 5 AFAIK.


Thanks and Regards,
S.Ramkumar


-----Original Message-----
From: Hordur Kr. Heidarsson [mailto:eight@s...]
Sent: Tuesday, October 22, 2002 10:11 AM
To: javascript
Subject: [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,

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=E5n: Teng-Fong SEAK [mailto:tfseak@f...]
Skickat: den 21 oktober 2002 17:14
Till: javascript
=C4mne: [javascript] RE: Preventing 'Access is denied'


> -----Message d'origine-----
> De : H=F6r=F0ur Kristinn Hei=F0arsson [mailto:eight@s...] 
Envoy=E9 :
> lundi 21 octobre 2002 17:12 =C0 : javascript
> Objet : [javascript] Preventing 'Access is denied'
>
>
> Hi
> 
> Is there any way to check if other frames are accessible, without
> 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.
> 
> Anyone familiar with this problem?
> 
> Thanks,
> Hordur
>
>
>
> ---
>

---

Improve your web design skills with these new books from Glasshaus.

Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
r-20


  Return to Index