Home > Ajax Error > Ajax Request Return 200 Ok But Error Event Is Fired Instead Of Success

Ajax Request Return 200 Ok But Error Event Is Fired Instead Of Success

Contents

My problem was, my controller was returning status code instead of Json. Apparently JS can't handle requests from one to the other. Blog Stats 89,181 hits Ruby on Rails Ruby on Rails Tag CloudActive Record Active Records Callbacks DataTables Debug Deployment Devise Engineyard Error Exception Handling Git Heroku HTML JavaScript jQGrid jQuery jS Is it correct to write "teoremo X statas, ke" in the sense of "theorem X states that"? this contact form

I then send it with JSON.stringify(dataToSend). I tried a lot of things but could not figure out the problem. I would think that any of the http 200 codes would be sufficient for a successful ajax request.It seems more correct in my particular application for the server to just respond Join them; it only takes a minute: Sign up AJAX request return 200 OK but error event is fired instead of success up vote 360 down vote favorite 62 I have

Ajax Request Return 200 Ok But Error Event Is Fired Instead Of Success

You must use double Quotes(for property names and string values), or at least when i had that problem, the double quotes solved it. Testing with IE 7. I am able to delete content but I am not getting this message. Then in your ajax call please mention dataType='text' It will resolve the problem.

Drawing a k-ary tree using TikZ without overlap Conditional summation C++ delete a pointer (free memory) How exactly std::string_view is faster than const std::string&? Max no of attachments : 3Loading User Profile... I'm using Visual Studio 2008 Development Editionwith .Net 3.5 sp1. Ajax Status 200 Means How to unlink (remove) the special hardlink "." created for a folder?

The goal here is find the real cause. –Alexey F Shevelyov Jul 14 at 18:39 add a comment| up vote 0 down vote If you are testing locally with a different I'll post the code here. <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication6._Default" %>