cmlenz/jquery-iframe-transport — pull request #9 by laurens (2012-04-14 13:29:29+00:00)
Title: status and statusText other than 200 and "OK"

Hi,

I extended the script to use optional data-status and data-statusText attributes on the respose textarea in order to return a status other than 200.

{"errors": …}

If not provided, status will default to 200 and "OK".

Use case:

Backbone.sync relies on the status returned by the xhr in order to decide, whether to use an error or success callback.

Laurens