Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var url = baseUri + '/mailer/send/';
- var ar = $(this).serialize();
- // ao invez de vc fazer assim:
- $.post(url,{
- ar:ar
- },function(data){
- });
- // vc deve fazer assim:
- $.ajax({
- type: "POST",
- url: url,
- //dataType: 'json',
- data: 'ar='+ar,
- error: function(argument) {
- // manipulação de erro
- },
- success: function(argument) {
- // manipulação de sucesso
- },
- complete: function(argument) {
- // executado após as funções de success e de error
- // opcional
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement