Amarnath Ravikumar
Amarnath Ravikumar

Reputation: 920

AHAH Javascript callback

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

Upvotes: 1

Views: 756

Answers (2)

Jacob Bolton
Jacob Bolton

Reputation: 83

A little late to the party but you can use:

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

Upvotes: 0

troynt
troynt

Reputation: 1912

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.

Upvotes: 2

Related Questions