The error is raised in ColdFusion and returned to the browser and trapped
Actually, it is a flash object that is making the call to ColdFusion . So I
can see what is happening with live headers in firefox :-(
On 3/14/07, Haikal Saadh <[EMAIL PROTECTED]> wrote:
>
>
> If you want javascript to raise an error, you'll have to
>
> <cfif errorHappened>
> <cfoutput>
> <script language="javascript">
> alert("Oh noes");
> </script>
> </cfoutput>
> </cfif>
>
> in addidtion to maybe sending a http error code. Http error code with
> tell the browser something went wrong, and the body of the page will
> make it look nice for the user.
>
> Take this further,
> if(errorHappened){
> redirectToErrorPage(reason)
> }
> is more what I would do.
>
> AJ Mercer wrote:
> > I would like to return an error code to the browser that will be
> > trapped by JavaScript.
> >
> > This is what I have at the moment - but doesn't seem to be doing what
> > I am after
> >
> > <cfif ErrorOfSomeSort>
> > <cfheader statuscode="400" statustext="Bad Request" />
> > <cfabort />
> > </cfif>
> >
> > Any suggestions would be greatly appreciated.
> >
> >
> > >
>
> --
> Haikal Saadh
> Applications Programmer
> ICT Resources, TALSS
> QUT Kelvin Grove
>
>
> >
>
--
If you are not living on the edge,
You are taking up too much space.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"cfaussie" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cfaussie?hl=en
-~----------~----~----~----~------~----~------~--~---