À mon avis prk tu n'utilise pas ajax

module...
<input type='button' id='save' id='save' />
<input type='button' id='submit' id='submit'  />
<div id='afficher'/>
js...
$("#save").click(function(){
$.ajax({
type: "POST",
data:
"btn1champ1="+$('#btn1champ1').val()+"&btn1champ2="+$('#btn2champ2').val();
url: "/votremodule1/votreaction1",
success: function(msg){
$('#affiche1').empty();
$('#affiche1').append(msg) ;
                   }
});
});
$("#submit").click(function(){
$.ajax({
type: "POST",
data:
"btn1champ1="+$('#btn2champ1').val()+"&btn2champ2="+$('#btn2champ2').val();
url: "/votremodule2/votreaction2",
success: function(msg){
$('#affiche2').empty();
$('#affiche2').append(msg) ;
                   }
});
});
module ...
/votremodule1/votreaction1...
/votremodule2/votreaction2...

-- 
Vous recevez ce message, car vous êtes abonné au groupe Google 
Groupes Symfony-fr.
Pour envoyer un message à ce groupe, adressez un e-mail 
à [email protected].
Pour vous désabonner de ce groupe, envoyez un e-mail à l'adresse 
[email protected].
Pour plus d'options, consultez la page de ce groupe : 
http://groups.google.com/group/symfony-fr?hl=fr

Répondre à