summaryrefslogtreecommitdiff
path: root/src/runtime/javascript/editor-grammar/Editor.gf
diff options
context:
space:
mode:
authorhallgren <hallgren@chalmers.se>2010-09-10 08:38:11 +0000
committerhallgren <hallgren@chalmers.se>2010-09-10 08:38:11 +0000
commit46da64cc7268a4a1d29675fd2ecce1e8fe113ae5 (patch)
treebb8ea9f898840a3244e63a9568ea8e4d41ffa809 /src/runtime/javascript/editor-grammar/Editor.gf
parente099336afa5e348efa83f2a0b4c6d237e236edeb (diff)
minibar: use AJAX instead of JSONP when possible
Using AJAX instead of JSONP can give better caching in the browser, since the URL doesn't need to contain a (dynamically generated) callback function name. But because of the same origin policy in JavaScript, AJAX can only be used when the HTML file is served from the same server as the PGF. The new function http_get_json in support.js uses AJAX if this is the case, and falls back to JSONP otherwise.
Diffstat (limited to 'src/runtime/javascript/editor-grammar/Editor.gf')
0 files changed, 0 insertions, 0 deletions