This topic is locked

call a php function from javascript

11/17/2019 3:37:54 PM
PHPRunner General questions
S
sfuente author

How can I run here in "Javascript onLoad event" a php function (x, y) found in "After table Initialize"?

and the return assign it to a javascript variable?
something like this, but without AJAXS (external file):
Runner.runnerAJAX('xhr.php?group='+proxy["group"]+"&original_url="+proxy["original_url"], null, function(respObj) {

if (!respObj.success) {

console.log(respObj.data.url);

document.getElementById("original_url").value=respObj.data.url;

window.location.href=respObj.data.url;

return ;

}else{ console.log('error xhr');}

});