eldarion / eldarion-ajax

a library for adding declarative ajax functionality to your website
BSD 3-Clause "New" or "Revised" License
758 stars 153 forks source link

callback event #27

Closed arkrozycki closed 11 years ago

arkrozycki commented 11 years ago

Is it possible to add a custom callback after the data comes back? Something like data-callback and have that function executed so you can do other processing (form validation messages, custom animations, call other events).

paltman commented 11 years ago

@arkrozycki this has been done in 0.7.0. There is now a eldarion-ajax:begin and eldarion-ajax:success event. the success event now fires at the beginning of processing instead of at the end.