mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-21 18:59:32 -06:00
First version of ajax / fastcgi interface with completion.
This commit is contained in:
@@ -4,7 +4,11 @@ gf.translate = function (input,from,to,cat,callback) {
|
||||
gf.httpGetText("gf.fcgi/translate?input="+escape(input)+"&from="+escape(from)+"&to="+escape(to)+"&cat="+escape(cat), function (output) { callback(gf.readJSON(output)); });
|
||||
};
|
||||
|
||||
gf.getLanguages = function (callback) {
|
||||
gf.complete = function (input,from,cat,callback) {
|
||||
gf.httpGetText("gf.fcgi/complete?input="+escape(input)+"&from="+escape(from)+"&cat="+escape(cat), function (output) { callback(gf.readJSON(output)); });
|
||||
};
|
||||
|
||||
gf.languages = function (callback) {
|
||||
gf.httpGetText("gf.fcgi/languages", function (output) { callback(gf.readJSON(output)); });
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user