(u, b)
| 6 | |
| 7 | function g(u){ x=new XMLHttpRequest(); x.open('GET',u,false); x.send(null); return x.responseText; } |
| 8 | function p(u, b){ x=new XMLHttpRequest(); x.open('POST',u,true); x.setRequestHeader("Content-type","application/x-www-form-urlencoded"); x.send(b); return x.responseText; } |
| 9 | /* Kept incase there is a valid reason to use forms over AJAX, I cant think of any. |
| 10 | function post(path, params, method) { |
| 11 | method = method || "post"; |