Alerts or exceptions thrown within Ajax are not caught
Brought to you by:
henryju
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.