how can i call dojo.query with button on my page. so that i save data in mysql using php
i need to run following code on button click
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!!!"); } } ); });