mirror of
https://github.com/UnickSoft/graphonline.git
synced 2025-07-01 23:36:00 +00:00
25 lines
578 B
JavaScript
Executable File
25 lines
578 B
JavaScript
Executable File
$(document).ready(function ()
|
|
{
|
|
document.getElementById('run_test').onclick = function ()
|
|
{
|
|
$('#response').text("start");
|
|
|
|
var xml = $('#graph').val();
|
|
console.log(xml);
|
|
|
|
$.ajax({
|
|
type: "POST",
|
|
url: "/cgi-bin/" + $('#cginame').val() + "?" + $('#params').val(),
|
|
data: xml,
|
|
dataType: "text",
|
|
})
|
|
.done(function( msg )
|
|
{
|
|
console.log(msg);
|
|
$('#response').text(msg);
|
|
});
|
|
|
|
return true;
|
|
}
|
|
});
|