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

Popular posts from this blog

how to devide a circle into equal parts

"Could not fill because there are not enough opaque source pixels" - not solved by any other thread

Why can't I change the billing info for my account?