Good morning!
There is a certain time, that I have to make an advanced filter on the server side. I thought of two possibilities in sending the parameters in fnserverdata, which did not work very well, so I decided to send the parameter via Ajax
Here is an example of my ajax
$("#btnFiltrar").click(function(){
if(document.getElementById("inputNao").checked){
var inputNao = $("input[id=inputNao]").val();
$.ajax({
type:'GET',
url:'json/ssp.class-license.php',
data:{
specialClientesYes:inputNao
}
})
}
});
$("#btnFiltrar").click(function(){
if($("#cmbVersao").find(":selected").text() != "Selecione"){
var versao = $("#cmbVersao").find(":selected").text();
$.ajax({
type:'GET',
url:'json/dados-license.php?version='+versao
})
}
});
$("#btnFiltrar").click(function(){
if($("#txtUsuariosDe").val() != ""){
var usuariosDe = $("#txtUsuariosDe").val();
$.ajax({
type:'GET',
url:'json/ssp.class-license.php',
data:{
earlyUsers:usuariosDe
}
})
}
});
My biggest problem is to get this value where the server side is and filter it How to handle this value?