Menu

#113 Alerts or exceptions thrown within Ajax are not caught

Release_2.2
open
5
2012-12-11
2009-05-13
No

If we use Prototype like so:

new Ajax.Request('../response.jsp', {
method:'get',
onSuccess: function(transport){
alert("Alert box from Ajax response");
throw new MyException("oh no!");
}
});

Neither the alert box, nor the exception, will be thrown or caught by JWebUnit -- execution proceeds like normal.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB