No ajax return from editor.on('open')
No ajax return from editor.on('open')
daniegloy
Posts: 35Questions: 12Answers: 5
I need to get the return value of the new id and populate the field value of id, but im not getting anything back from ajax call.
editorNewForm.on('open ', function(){
var NewStockNr;
$.ajax({
url: 'checkStockNr.php', //the script to call to get data
//you can insert url argumnets here to pass to api.php
dataType: "json",
success: function(results){
alert(results);
}
});
});
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Just to confirm, the problem is that
checkStockNr.php
isn't returning anything? I'm not sure I can help much there since I don't know what is in that script.Allan
Fixed it. Thanks My php output was wrong