AJAX Webform Error object Object?
i submitting webform using ajax , when submit form register submission in backend message doesn't fade in , form doesn't fade out. instead see error in alert:
error[object object]
here js using:
var $j = jquery.noconflict();
function jqsub() {
var $f = $j('#reg-form');
var $m = $j('#message');
$j.ajax({
type: 'post',
url: $f.attr('action') + '&json=1',
data: $f.serialize(),
success: function(msg) {
var formresponse = eval(msg);
if (formresponse.formprocessv2response.success) {
$m.fadein().html(formresponse.formprocessv2response.message);
$f.fadeout();
}
},
error: function(msg) {
alert('error'+msg);
return false;
}
});
}
is there wrong code?
as mentioned above form submit doesn't work after submission seem.
how solve error?
link?
More discussions in Business Catalyst
adobe
Comments
Post a Comment