v-dogg
public text v1 · immutable<script type="text/javascript">
var suc = function(result) { alert(result); };
window.addEvent('domready', function(){
$('insert_img').onclick = (function fn(event) {
var myXHR = new XHR({method: 'get', onSuccess: suc}).send('http://localhost:8080/ajax.php');
}).bindAsEventListener($('insert_img'));
});
</script>