2010-12-02 3 views
1

Actuellement, j'ai une variable (cat) comment puis-je en envoyer un autre comme "CS"?envoyer plus d'une variable avec .load dans jquery

$gallery.load('/public/themes/lbd/js/imagegallery.php', {'cat': cat}, function(){ 
      $(this).fadeIn(function(){ 
       $('a.customGal').zoomimage(); 
      }); 
     }); 

Répondre

2
$gallery.load('/public/themes/lbd/js/imagegallery.php', {'cat': cat, 'CS': cs}, function(){ 

Il est juste un objet régulier JavaScript.

1
$gallery.load('/public/themes/lbd/js/imagegallery.php', {'cat': cat, cs:'cs', anotherVar : 'xyz'}, function(){ 
      $(this).fadeIn(function(){ 
       $('a.customGal').zoomimage(); 
      }); 
     });