1
Comment puis-je appeler dojo.query avec un bouton sur ma page pour sauvegarder des données dans mysql en utilisant php?Comment utiliser dojo.query avec le bouton?
Je dois exécuter le code suivant sur le bouton clic:
dojo.query("img",dojo.byId("div1")).forEach(function() {
// this is now the image
dojo.xhrGet({ url: '/somepage.php',
data: { image_name: this.title } // ???: depends on what you want
load: function(data) {
alert("I worked!");
},
error: function(data) {
alert("O NOES!!!");
}
}
);
});