NHARRY
2010-02-14 14:58:08 UTC
I have a form that is loaded using .load it is then posted using the
jquery form plugin. But it won't post see code:
<script type="text/javascript">
$(document).ready(function() {
//shows loading screen whilst posting via ajax
$().ajaxStart($.blockUI).ajaxStop($.unblockUI);
//post form add_customer ajax
var options = {
target: '#alert',
};
$('#add_customer').submit(function() {
$(this).ajaxSubmit(options);
return false;
});
//load form
$('#theform').hide().load('form.php', function() {
$(this).fadeIn();
return false;
});
});
</script>
I am sure there are others that have had this problem. Help ismuch
appreciated.
jquery form plugin. But it won't post see code:
<script type="text/javascript">
$(document).ready(function() {
//shows loading screen whilst posting via ajax
$().ajaxStart($.blockUI).ajaxStop($.unblockUI);
//post form add_customer ajax
var options = {
target: '#alert',
};
$('#add_customer').submit(function() {
$(this).ajaxSubmit(options);
return false;
});
//load form
$('#theform').hide().load('form.php', function() {
$(this).fadeIn();
return false;
});
});
</script>
I am sure there are others that have had this problem. Help ismuch
appreciated.