In a dim memory, i have a feeling that cfabort stops CF from doing anything rational... see if you can code it a little more like <cfif ErrorOfSomeSort> <cfheader statuscode="400" statustext="Bad Request" /> <cfelse> ... do cool stuff here </cfif>
then grab the liveheaders extension for firefox and watch your header get sent back to the browser... L. On 3/14/07, AJ Mercer <[EMAIL PROTECTED]> 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. > > > > > -- Lucas http://www.thebitbucket.net --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "cfaussie" group. To post to this group, send email to cfaussie@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---