[SOLVED] Extending Form Builder with AJAX-submit() Handling
Posted: Mon Jul 15, 2013 11:05 am
I'm using cmsms 1.11.7 and I am trying to use AJAX on top of Form Builder 0.7.3.
I created a test page outside of cmsms with an AJAX request. The code on my test page looks like this...
'pear/index.php', being the place where all my form data is processed, and then sent with php mail functions. But I think I don't need to worry about using 'pear/index.php' because formbuilder has it's own processing page location.
So my question boils down to this...How do I adjust my $post() tag above, to connect to the right file so that formbuilder sends data?
Thanks for any advice, even if there is better way to submit via AJAX with Form Builder!
bh
I created a test page outside of cmsms with an AJAX request. The code on my test page looks like this...
Code: Select all
var fcontactform = $('.contact-form');
fcontactform.submit(function() {
//..some jquery logic...
$.post("pear/index.php", fcontactform.serialize(), function(data){
//...now show jquery confirmation message...thank you...
});
return false;
}
So my question boils down to this...How do I adjust my $post() tag above, to connect to the right file so that formbuilder sends data?
Thanks for any advice, even if there is better way to submit via AJAX with Form Builder!
bh