jquery/jquery-mobile — Issue #3212: Feature request - handle text/json response
Author: pehrlich
Created: 2011-12-03 00:38:18+00:00
State: open

Currently, any unexpected response to loadpage will render blank text saying "undefined". It would be really nice (and I think quite simple) to turn this in to an extension point instead. When responseHeaders are not html, trigger a custom handler with the data.

In concert with this, one mover the code which shows a yellow error dialog in to its own accessible method. Which could, in turn, be used by such a handler.

This could be used by json data returned from server errors or in a more lightweight form validation.

Thoughts?