Comment on Who Does Facebook Think You Are Searching For?Comments−mrspeaker15yThis is pretty funny in the ajax code: success: function(result) { alert('Please try again.'); }, error: function(data) { var text = data.responseText; // ... processes the data here... } Why is success error and error success?−albertsun15yI think because the request is asking for content type JSON but the Facebook response comes back as javascript with a for (;;); at the beginning. The content types don't match so jQuery invokes the error callback.
Comments
This is pretty funny in the ajax code:
Why is success error and error success?I think because the request is asking for content type JSON but the Facebook response comes back as javascript with a for (;;); at the beginning. The content types don't match so jQuery invokes the error callback.