mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-11-04 11:15:27 -07:00
added function for posting query strings. scales better than get.
This commit is contained in:
1 parent
2b09e70b4a
commit
8bc4cc7187
1 file changed
+4
@@ -135,6 +135,10 @@ function ajax_http_post_json(url,formdata,cont,errorcallback) {
|
|||||||
ajax_http_post(url, formdata, with_json(cont,errorcallback), errorcallback);
|
ajax_http_post(url, formdata, with_json(cont,errorcallback), errorcallback);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function ajax_http_post_querystring_json(url,querystring,cont,errorcallback) {
|
||||||
|
ajax_http("POST",url,querystring,"application/x-www-form-urlencoded",with_json(cont,errorcallback),errorcallback);
|
||||||
|
}
|
||||||
|
|
||||||
function with_json(cont,errorcallback) {
|
function with_json(cont,errorcallback) {
|
||||||
return function(txt){
|
return function(txt){
|
||||||
if(txt) {
|
if(txt) {
|
||||||
|
|||||||
Reference in new issue
Block a user