Active
Project:
Clientside Validation
Version:
7.x-1.34
Component:
Form Validation
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Jul 2012 at 07:34 UTC
Updated:
19 Jul 2012 at 10:45 UTC
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
Comment #1
lorisb commentedI 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
Comment #2
attiks commentedWhat error message did you get? Was it on
delete self.forms [f];But i guess sending them all at once is the safest way
Comment #3
lorisb commentedSince 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