I'm trying to create a module that loads a form into a popup with popupsapi, everything works flawlessly until I need to do something with the popup when the form gets updated.
Is there a way tu run custom js after the form has been updated?

Comments

peacog’s picture

Hi Diego

Did you find a solution? I also need to call some javascript after my form is rebuilt. I hacked the Drupal.ahah.prototype.success function in ahah_helper.js and added my code at the end, but that's not a real solution. Please let me know if you figured out how to do it.

Thanks

andreiashu’s picture

Hi guys,
It is possible to override things like Drupal.ahah.prototype.success. Just copy -> paste that piece of code into your module's .js file and then you can modify it to suit your own needs.

peacog’s picture

Thanks for explaining that. The override worked.

jerome.megel’s picture

Yes, thanks a lot, it worked for me too