added function for posting query strings. scales better than get.

This commit is contained in:
krangelov
2020-07-21 22:29:00 +02:00
parent 2b09e70b4a
commit 8bc4cc7187

View File

@@ -135,6 +135,10 @@ function ajax_http_post_json(url,formdata,cont,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) {
return function(txt){
if(txt) {