-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathjs.js
More file actions
24 lines (19 loc) · 725 Bytes
/
js.js
File metadata and controls
24 lines (19 loc) · 725 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
function sendQuarry(man,machine) {
post_to_url('http://www.cs.bgu.ac.il/~talbau/rouge/', {'man':man,'machine':machine},"POST");
}
function post_to_url(path, params, method) {
var form = document.createElement("form");
form.setAttribute("method", method);
form.setAttribute("action", path);
for(var key in params) {
if(params.hasOwnProperty(key)) {
var hiddenField = document.createElement("input");
hiddenField.setAttribute("type", "hidden");
hiddenField.setAttribute("name", key);
hiddenField.setAttribute("value", params[key]);
form.appendChild(hiddenField);
}
}
document.body.appendChild(form);
form.submit();
}