mirror of
https://github.com/UnickSoft/graphonline.git
synced 2026-06-15 21:30:56 +00:00
Added test cgi page
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
$(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;
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user