function login() { var myHTMLRequest = new Request.HTML({url:'../login',encoding: 'utf-8', onSuccess: function(html) { //Clear the text currently inside the results div. $('content').set('text', ''); //Inject the new DOM elements into the results div. $('content').adopt(html); } }).post($('login')); }