summaryrefslogtreecommitdiff
path: root/src/www/js/support.js
AgeCommit message (Collapse)Author
2020-07-21added function for posting query strings. scales better than get.krangelov
2020-07-21allow specifying content-type in ajax_httpkrangelov
2014-03-27support.js & gftranslate.js: improved handling of server errorshallgren
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.
2014-03-12support.js: For better error handling, always use AJAX, don't fallback to JSONPhallgren
Cross-origin requests are allowed by the PGF service and are supported in all modern browsers. See http://en.wikipedia.org/wiki/Cross-origin_resource_sharing
2013-04-04minibar/syntax editor integration improvementshallgren
Work in progress on preserving the start category and selected target languages when switching between the minibar and the syntax editor.
2013-03-27support.js: add function replaceNodehallgren
2012-12-07Syntax editor: various small improvements...john.j.camilleri
- separate tree edit buttons from option buttons - fix bug when wrapping on freshly imported ast - add interface for import & export of ast - cleaner internal implementation of Editor.add_refinement - small style updates
2012-11-29minibar: add tool tips to some of the buttonshallgren
Also move the functions title and attr from editor/editor.js to js/support.js. Also mention recent changes in minibar/about.html.
2012-11-27Syntax editor: improvements and fixes with grammar managerjohn.j.camilleri
2012-11-23gfse: use POST requests when parsing grammar modules after editing as texthallgren
instead of GET, to avoid the Apache httpd URI length limitation. This means that gfse can no longer use JSONP when parsing grammars, so it has to be located on the same host as the cloud service. Also clean away trailing white space in support.js.
2012-11-22Syntax editor: can now load minibar (in-place) from a linearised treejohn.j.camilleri
2012-11-21support.js: elem() returns false when as is undefinedjohn.j.camilleri
2012-11-20GF cloud: move support.js and pgf_online.jshallgren
Created the folder js and moved minibar/support.js and minibar/pgf_online.js there, to emphasize their status as app independent support libraries. There are probably more files that should be moved here. The cloud apps have been updated, externally hosted apps that link directly to our server need to be updated too.