Communication avec le serveur

goog.require("goog.Uri");
goog.require("goog.net.XhrIo");
 
var qd = new goog.Uri.QueryData(); 
qd.add('name1', 'val1'); 
qd.add('name2', 'val2'); 
function done(e) { 
   this.getResponseText();  // ... etc... 
} 
 
goog.net.XhrIo.send("/controller/action", done, "POST", qd.toString()); 

Poster un nouveau commentaire

Le contenu de ce champ ne sera pas montré publiquement. If you have a Gravatar account associated with the e-mail address you provide, it will be used to display your avatar.
CAPTCHA
La vérification ne tient pas compte des minuscules ou des majuscules.
Image CAPTCHA
Enter the characters shown in the image.