posting to aweber with jQuery

Posted by wcpro on Stack Overflow See other posts from Stack Overflow or by wcpro
Published on 2010-04-14T17:52:07Z Indexed on 2010/04/14 17:53 UTC
Read the original article Hit count: 206

Filed under:

Im trying to post to aweber using just jquery. I have a method call like this

$(function () {
            $('#submit').click(function () {
                $.post('http://www.aweber.com/scripts/addlead.pl',
                {
                    meta_web_form_id: '12345',
                    meta_split_id: '',
                    listname: 'some_list',
                    redirect: '',
                    meta_redirect_onlist: '',
                    meta_adtracking: 'my_Web_Form',
                    meta_message: '1',
                    meta_required: 'name,email',
                    meta_forward_vars: '',
                    meta_tooltip: '',
                    email : '[email protected]',
                    name : 'tester testing'
                },
                function (data) {
                    alert('data load: ' + data);
                });
            });
        });   

it is supposed to take the result of the post and alert it in a box. when i try to do it manually with forms it works but redirects me to a 'form-sorry.htm' page, which is fine, just wondering if there was a way to display the end result of the post. Im guessing hte addlead.pl is just a posting page with no response.

© Stack Overflow or respective owner

Related posts about jquery-ajax