Ver Mensaje Individual
  #3 (permalink)  
Antiguo 18/07/2015, 10:31
Avatar de xfxstudios
xfxstudios
 
Fecha de Ingreso: junio-2015
Ubicación: Valencia - Venezuela
Mensajes: 2.448
Antigüedad: 9 años, 7 meses
Puntos: 263
Respuesta: pasar parámetro por medio de require()

no se mucho de ajax pero prueba asi:

Código Javascript:
Ver original
  1. $(document).ready(function() {  
  2.     $('.paginate').live('click', function(){
  3.        
  4.         $('#content').html('<div class="loading"><img src="images/loading.gif" width="70px" height="70px"/></div>');
  5.  
  6.         var page = $(this).attr('data');        
  7.         var dataString = 'page='+page;
  8.         var variable = 'AQUI LA VARIABLE';
  9.        
  10.         $.ajax({
  11.             type: "GET",
  12.             url: "includes/pagination.php"+'?'+variable,
  13.             data: dataString,
  14.             success: function(data) {
  15.                 $('#content').fadeIn(1000).html(data);
  16.             }
  17.         });
  18.     });              
  19. });

y en el otro documento recibela asi:

Código PHP:
Ver original
  1. $variable = $_GET['variable'];
y la asignas donde la necesites
__________________
[email protected]
HITCEL