#634 enhancement
Spezi

Rethrow errors in ajax callbacks

Reported by Spezi | March 31st, 2009 @ 11:37 PM | in 2.0

When using Ajax.Request and an error occurs inside of the onCreate method without providing an onException method, no exception is thrown and onCreate is just left silently. Only tested this with prototype 1.6.0.3 and 1.6.1_rc2 in Firefox 3.0.8 though. I don't know what's happening in this case inside Ajax.Request when no onException method is given, but a default implementation should just pass the exception so it doesn't get suppressed as in the example.

Just to describe the example: The error occurs in onCreate since no element with id "content" exists. With onException provided, the error is caught there and passed to the caller.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

The Prototype JavaScript library.

Shared Ticket Bins

People watching this ticket

Attachments

Referenced by

Pages