Ver Mensaje Individual
  #1 (permalink)  
Antiguo 11/02/2010, 11:53
petete2007
 
Fecha de Ingreso: marzo-2008
Mensajes: 17
Antigüedad: 16 años
Puntos: 0
datatable llamada por parametro

Hola, necesito vuestra ayuda a ver si algún ilustrado tiene la solución.
Estoy usando el plugin php datatables.net y mi idea es la siguiente :
Tengo una table y varios enlaces ( consulta1, consulta2, consulta3). Dependiendo de la consulta seleccionada mostrará unos resultados en tabla u otros.

Código:
			var oTable3;
			var giRedraw = true;
			
			$(document).ready(function() {

	
				oTable3 = $('#example3').dataTable( {
					/* "sDom": '<"top"iflp<"clear">>rt',   */
					/* "bInfo": false, */    /* texto de mostrando nºencontrados */
					"bFilter": true,         /* ocultar buscador */
					"sSearch":true,
					"iDisplayLength": 4,
					"iDisplayStart": 0,					
					"bProcessing": false,  
					/* "sPaginationType": "full_numbers", */
					"aoColumns": [ 
						{ "bVisible": false, "asSorting": [ "asc" ] },  
						{ "sWidth": "50%", "bSortable": false , "bSearchable": false},   /* foto */
						{ "sWidth": "50%", "bSortable": false , "bSearchable": false},  /* detalle */
						{ "bVisible": false},
						{ "bVisible": false},
						{ "bVisible": false}
						],						
					/* "bServerSide": true,  */
					"sAjaxSource": "./server_accesory.php?valor=6" 
				} );
		

			} );
No sé como llamar a la función server_accesory.php para pasarle un parámetro y sobre no se cómo refrescar la tabla.

Resumiendo...me valdría saber como cambiar la SQL dependiendo de la opción que elija.

HELP MEE por favor !!

Última edición por petete2007; 11/02/2010 a las 12:06