Bonjour,

j'ai créé des werbservice en php qui fonctionne bien.

Depuis le client, j'envoie en javascript des infos en POST, et mon problème est que je n'arrive plus ensuite a afficher de nouvelles info sur ma page(coté client.

voici le code que j'utilise :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//fonction qui est appelé une fois que le formulaire est rempli
function sendCommentary(commentaryForm,idSite_)
{
       //ce que je veux afficher une fois l'info envoyé
	html='finish'; 	
 
	var newCommentary_ = document.forms["commentaryForm"].CommentaryText.value;
	var noteCommentary_ = document.forms["commentaryForm"].noteCommentary.value;
 
       //j'utilise jquery pour envoyer les infos au serveurs
	var posting = $.post("http://www.monsite.com/webService.php", 
{ NewCommentary: newCommentary_, note: noteCommentary_ , IdSiteCommentary: idSite_ } )
.done(function(data){$('#data').html('<p>' + html + '</p>');});	
 
}
Je n'arrive pas afficher le mot finish sur ma page.
Par contre si je met une alerte ca marche :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
var posting = $.post("http://wich.franceserv.com/webService.php", 
{ NewCommentary: newCommentary_, note: noteCommentary_ , IdSiteCommentary: idSite_ } )
.done(function(data){alert('finish');});
Je souhaiterai juste pouvoir ajouter un bouton "retour" sur ma page par exemple.

Merci de votre aide