Bonjour tout le monde,
J'espère trouver ici de l'aide concernant mon problème avec Ajax.Updater en utilisant Prototype.
Voici mon cas :
Formulaire :
Div pour récupérer le résultat de ajax.php :Code:
1
2
3
4
5
6 <form id="form4"> <fieldset class="zero"> <input type="text" id="msg_com4" name="msg_com" size="60" maxlength="250" class="small" /> <input type="button" value="Commenter" class="submit small" onclick="go_com4();" /> </fieldset> </form>
Le JS :Code:<div id="insert_coms_4"></div>
Je ne comprends pas pourquoi cela ne fonctionne pas, merci d'avance de votre aide.Code:
1
2
3
4
5
6
7
8
9
10
11 <script type="text/javascript"> function(go_com4) { Params = Form.serialize(form4); new Ajax.Updater( 'insert_coms_4', '/includes/ajax.php', { method: 'post', parameters: Params, {actajax: com_mur, p: 1, idmsg: 4} }); } </script>