I have a module that invokes multiple forms with the same ajax call. In version 7.x 1:34-the problem is due to this code:
Drupal.clientsideValidation.prototype.bindForms = function () {
var self = this;
self.time.start ('2. bindForms');
/ / Unset invalid forms
jQuery.each (self.forms, function (f) {
if ($ ('#' + f). length <1) {
delete self.forms [f];
}
});
Probably not all the forms are still in the dom that are deleted.
Any idea?
thanks

Comments

lorisb’s picture

I solved my problem by concatenating each drupal_render on a single string and calling ajax_command_append once. This problem, however, could be presented and various other occasions

attiks’s picture

What error message did you get? Was it on delete self.forms [f];

But i guess sending them all at once is the safest way

lorisb’s picture

Since there appeared in the Dom, delete self.forms [f] was performed and the form was not processed by clientsideValidation.
I do not know if it is always possible to send every form all at once when using ajax behaviors