Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript_howto thread: Problems with using try in Netscape


Message #1 by chrscote@9... on Thu, 20 Feb 2003 15:53:22
I'm not sure, Chris...
AFAIK, you can't use try...catch in Netscape 4.7.

You can use window.onerror, but that is probably not an interesting
option for you...

Maybe a separate JS file for Netscape 4.7?


/Robert




-----Original Message-----
From: chrscote@9... [mailto:chrscote@9...]
Sent: den 20 februari 2003 16:53
To: JavaScript HowTo
Subject: [javascript_howto] Problems with using try in Netscape


I have a page made up of 2 frames.  One frame needs to perform a task in

the other form.  In order to make sure no errors occur, I am using a
try- catch block which calls itself if the frame is not available (the
function
doesn't work).  This function is working find in IE and even in Netscape

6, but in Netscape 4.7, a browser that many of the site's users will be
using, I get an error saying that try is a reserved identifier.
  Now I've checked to make sure that all my brackets match up, but it
continues to break on that line.  Does anyone know what I can do to get
around this error?

Chris

  Return to Index