Send data with jQUERY to INFUSION soft

1.4k views Asked by At

How i can send data to INFUSIONSOF using jquery? I have:

$(function(){
    $('.signup form').submit(function(e){

        e.preventDefault()

        $this = $(this);

        var email   = $this.find('.email input').val();

        if(email == '' || !checkEmail(email)){
            alert('Enter VALID EMAIL');
            return false;
        };      

        var form_method     = $this.attr('method');
        var action  = $this.attr('action');
        var serial  = $this.serialize();        

        $.ajax({
                url : action,
                type : "POST",
                data : serial,
                dataType: "jsonp",
                cache : false,
                success : function(data) {
                    console.log(data);
                }               
            });
     });

This not working, i can't get success data. I get this error"Uncaught SyntaxError: Unexpected token < 7b9db76413c68324afe2783301ed3292:109" But this error is on INFUSIONSOFT code.

0

There are 0 answers