Displaying 1 result from an estimated 1 matches for "sync_load".
2009 Jul 16
2
[PATCH server] updated anyterm/ovirt integration
...} else if (method=="POST") {
+ xmlhttp.open(method, url, true);
+ xmlhttp.setRequestHeader('Content-Type',
+ 'application/x-www-form-urlencoded');
+ xmlhttp.send(query);
+ }
+
+ }
+}
+
+
+// Synchronous loader is a simple function
+
+function sync_load(url,query) {
+ var xmlhttp = new_XMLHttpRequest();
+ if (method=="GET") {
+ xmlhttp.open(method, url+"?"+query, false);
+ xmlhttp.send(null);
+ } else if (method=="POST") {
+ xmlhttp.open(method, url, false);
+ xmlhttp.setRequestHeader('Foo','...