Tim:

The two should be mutually exclusive as the JS alert is client-side and
CFERROR only traps errors that occur within ColdFusion (i.e., server-side).

When you say that a JS alert is encountered, do you mean that the JS dialog
box pops-up or do you mean whenever you have the alert code in a CFM file?
Also, what kind of exception is being thrown?  What other information is
available from the Exception?  Is it possible that some other code,
somewhere around the JS code, is causing the exception?

--
Mosh Teitelbaum
evoch, LLC
Tel: (301) 625-9191
Fax: (301) 933-3651
Email: [EMAIL PROTECTED]
WWW: http://www.evoch.com/


> -----Original Message-----
> From: Tim Do [mailto:[EMAIL PROTECTED]]
> Sent: Monday, January 06, 2003 11:06 AM
> To: CF-Talk
> Subject: cferror
>
>
> Hello all,
>
> Anybody know why cferror is thinking a javascript alert is an
> error?  I use
> js alerts in several areas of my application and it worked fine
> before I put
> in the cferror.  Now everytime a js alert is encountered, I get the error
> page.
>
> This is what I have for my cferror code:
>
> <cferror type="Exception" template="sendErrorAct.cfm" EXCEPTION="Any"
> mailto="[EMAIL PROTECTED]">
>
>  and here is my js code:
>
> <script language="JavaScript">
>       alert('Sorry...\The APN Number you entered does not exists, Please
> Try again.');
>       window.history.go(-1);
> </script>
>
>
> Thanks
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to