1

Can we specify a Javascript function to be called after the AJAX request from a Drupal AHAH form is completed?

2 Answers2

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
0

A little late to the party but you can use:

$(document).ajaxComplete(function() {
  // custom JS here
});