So I plan a blog entry on this, but taking my example of ajaxSetup:
$.ajaxSetup({
error:function(x,e){
if(x.status == 500 && x.statusText == "SessionTimeout")
{
alert("Your session has timed out.");
location.href = 'login.cfm';
}
}
});
I'd simply add an else to the IF there to do X,where X is either the
vague handler or the more verbose one you spoke of.
On Wed, Sep 8, 2010 at 1:00 PM, Tony Bentley
<[email protected]> wrote:
>
> You're correct if the application was something on the public end but during
> black box testing is when this would be useful. Before go-live I would like
> the user (or another client based delivery system) to catch errors and pass
> them back to a ticket. I can then go into my error log files and see more
> detail of what happened or get a little more information about how to
> duplicate and resolve the issue.
>
> Following, I would return something vague once black box testing is complete
> like 'were sorry an error has occurred' and then refresh or catch it and
> move on, etc.
>
> So to join the two, the real answer is yes and yes :) I would want to say
> whatever I want and handle it however I want based on when in the SDLC it is
> occurring and who is getting the error.
>
> Thanks for helping me on this. I know there are a lot of ways to do it but
> that's my problem. I think there is probably a better solution specific to
> CF/JQuery, perhaps the most common client/server combination for ColdFusion.
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:336908
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm