summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorhallgren <hallgren@chalmers.se>2014-03-27 15:02:27 +0000
committerhallgren <hallgren@chalmers.se>2014-03-27 15:02:27 +0000
commit9bfed9979034def4a282d4dd6cdfc89a288be544 (patch)
treecf0358891bf1205892221c518f7a89598e316d1f /examples
parent911ae42296780b81f2afd7795c2eabce745649c8 (diff)
support.js & gftranslate.js: improved handling of server errors
In support.js, the functions http_get_json, ajax_http_get_json and ajax_http_post_json now calls the supplied error callback if the server returns invalid JSON (e.g. because of a crash). The function gftranslate.translate in gftranslate.js returns a JSON value containing an error message (since it doesn't have an error callback). This should result in fewer situations where "nothing happens" and the user doesn't know if it is beacuse the server is slow, or if there was an error.
Diffstat (limited to 'examples')
0 files changed, 0 insertions, 0 deletions