Quantcast
Channel: Web API
Viewing all articles
Browse latest Browse all 4850

Post Data with Ajax works in Windows not in Apple. Any idea?

$
0
0

Hello,

On a page I am calling an ASP.NET Web API action as follows:

$.post('/api/mail/send/', { '': $('form #mail').val() }).done(function () {
  $('form #send').addClass('sent').attr('disabled', 'disabled');
  $('form #mail').val('')
});

On any browser in Windows the code inside the done function runs well.

On an Apple that code does not run at all in any browser.

In both cases the action is always called and the email is sent.

The Web API action is as follows:

[Route("api/mail/send"),HttpPost]publicvoidSend([FromBody]String email){}

I have no idea what might be wrong here.

Does anyone has a clue?

Thank You,

Miguel


Viewing all articles
Browse latest Browse all 4850

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>