I've been working with Ruby on Rails for the last couple of years, moved to project written in PHP and I can't get one thing straight.
I have a jQuery (CoffeeScript) AJAX call, which waits for success or error.
The problem is, I'm getting status ok ALWAYS even if the request fails, see:
Every time I get this it's not success or error, the script just hangs.
$.ajax
url: url
type: type
beforeSend: ->
// do something
error: ->
// I can never get here
success: (data) ->
// this works sometimes, but not when I get this weird stuff from screenshot
I'm wondering if this is a front-end or back-end / server issue, shouldn't I get different status code here?