Forum


06:35

18/07/2008

Maybe this code can help you:
//form variables for searching
var clave = jQuery("#clave").val();
var id_barrios = jQuery("#id_barrios").val();
var id_estados = jQuery("#id_estados").val();
var nombre = jQuery("#nombre").val();
var dni = jQuery("#dni").val();
var apellido1 = jQuery("#apellido1").val();
jQuery("#list1").setGridParam({
url:url_peticiones_base + "&_search=true&clave=" + clave + "&id_barrios=" + id_barrios + "&nombre=" + nombre + "&apellido1=" + apellido1 + "&dni=" + dni + "&id_estados=" + id_estados,
page:1
}).trigger("reloadGrid");
}
You only have to make a button or link that calls this function, and adapt this function to your needs.
05:36

18/07/2008

Ok, try to use postData instead of url. Would be like this:
function buscar(){
//form variables for searching
var clave = jQuery(”#clave”).val();
var id_barrios = jQuery(”#id_barrios”).val();
var id_estados = jQuery(”#id_estados”).val();
var nombre = jQuery(”#nombre”).val();
var dni = jQuery(”#dni”).val();
var apellido1 = jQuery(”#apellido1″).val();
jQuery(”#list1″).setGridParam({
postData:{"search":"true","clave":clave,"id_barrios":id_barrios ....},
page:1
}).trigger(”reloadGrid”);
}
It's more or less the same, but using postData. I don't know whether you have to use the quotes or not. Try and comment 😀
Most Users Ever Online: 715
Currently Online:
80 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66