FormCheck with Ajax Content

53 views
Skip to first unread message

Nick Villaume

unread,
Apr 24, 2012, 10:30:36 AM4/24/12
to MooFloor
I am attempting to initialize the FormCheck object within a form that
is loaded onto my page via an ajax request. Because the form is not
loading in as part of the DOM when the page loads, I am unable to get
the form to validate onBlur for any of my fields.

I have already confirmed that the FormCheck class is initializing when
called, so I am not sure why it is not catching the events on the
page.

Enric

unread,
Apr 24, 2012, 2:17:25 PM4/24/12
to MooFloor
Did you do something like this?

new Request.HTML({
url: '...',
onComplete: function(){
new FormCheck('form',{
display: {
showErrors: 1
}
});
}
}).send();

... do you have an uploaded example?

Nick Villaume

unread,
Apr 30, 2012, 3:50:52 PM4/30/12
to MooFloor
Thanks, yes. I have this figure out.
Reply all
Reply to author
Forward
0 new messages