Can we specify a Javascript function to be called after the AJAX request from a Drupal AHAH form is completed?
Asked
Active
Viewed 751 times
2 Answers
2
I don't think there is a clean way to do this.
Try including a script element when returning html to be inserted in the dom.

troynt
- 1,900
- 15
- 21
-
Good idea. Works. But you are right. Not clean. Thanks anyway! :) – Amarnath Ravikumar Dec 07 '10 at 16:49
0
A little late to the party but you can use:
$(document).ajaxComplete(function() {
// custom JS here
});

Jacob Bolton
- 83
- 4