We have a Splunk html view. We are trying to call a python script. Currently the code looks like this (retyped since our Splunk server doesn't have web access, I tried to avoid typos):
function callScript(){
$.ajax({
type: "POST",
url: "bin/my_script.py",
data: {'flag': defaultTokenModel.get("form.flag"))
},
success: function() {
alert("success returned");
}
});
}
This doesn't work. The success message is returned, but the actual python script isn't called.
From what I can tell, it looks like there may be a method called ajax in simplifyxml/mvc.js which is conflicting with the JQuery method, though I'm not certain that is the case.
What is the proper way to make a script call like this?
↧