window.addEvent('domready', function() { var req = new Request.HTML({url:beispiel.html', onSuccess: function(html) { $('result').set('text', ''); $('result').adopt(html); }, onFailure: function() { $('result').set('text', 'The request failed.'); } }); $('makeRequest').addEvent('click', function() { req.send(); }); });