Quantcast
Channel: jquery Ajax Doesn't Send JSON Data - Stack Overflow
Browsing all 4 articles
Browse latest View live

Answer by Enix for jquery Ajax Doesn't Send JSON Data

The ajax client expects your response MIME type as 'json', however you provided a plain text 'okay' as response.If you still need to send json as a response, you can make use of res.type change your...

View Article



Answer by Munchmallow for jquery Ajax Doesn't Send JSON Data

I have removed dataType: 'json'and contentType: "application/json"and ajax request succeeded. I still don't know why but it worked after removing them.

View Article

Answer by sideroxylon for jquery Ajax Doesn't Send JSON Data

dataType refers to the expected response from the server - see HERE. If the response is not JSON, remove dataType: 'json' from the ajax function, and jQuery will make an intelligent guess.

View Article

jquery Ajax Doesn't Send JSON Data

I am trying to send an ajax send request, but it always goes into error.$('form#contactForm button.submit').click(function () { var contactName = $('#contactForm #contactName').val(); var contactEmail...

View Article
Browsing all 4 articles
Browse latest View live




Latest Images