mirror of
https://github.com/radareorg/radare2.git
synced 2025-02-04 12:36:30 +00:00
17 lines
401 B
JavaScript
17 lines
401 B
JavaScript
function Ajax (method, uri, body, fn) {
|
|
var x = new XMLHttpRequest ();
|
|
x.open (method, uri, false);
|
|
x.onreadystatechange = function (y) {
|
|
if (fn) fn (x.responseText);
|
|
}
|
|
x.send (body);
|
|
}
|
|
|
|
function r_core_cmd_str (x, cb) {
|
|
Ajax ("POST", "?setComment="+hwid, cmt, function (x) {
|
|
alert (x);
|
|
/* force refresh */
|
|
location.reload (true);
|
|
});
|
|
}
|