0
Good morning!
There is a certain time, that I have been needing to make an advanced filter on the server side. I thought two possibilities, to send the parameters in fnserverdata, which did not work very well, so I decided to send the parameter via Ajax
Follow an example from 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 difficulty is to take this value where does the server side and make it filter How to treat this value?