1

I am implementing http://sendy.co and Betakit and pretty much stuck trying to do POST via AJAX with some values to pass on.

According to Sendy API here I should be able to subscribe but I am struggling on getting it to work with AJAX. With this code below that I tried it becomes GET when I submit/click:

$.ajax({ type: "POST", url:"http://example.com/subscribe", dataType: "jsonp", data: {email: email, list: 'Pasdsadasdasdada'}, }); }; GET instead of POST

How do I make it to POST instead of GET?

4

1 回答 1

1

Please try this

$.post("/subscribe", {email: email, list: 'PtCA7hgiZuZucMCQGFLrcA'});

Thanks

于 2013-06-18T09:51:32.110 回答