Ver originalnew Ajax.Request(url, { method: 'get', onSuccess: function(transport) { var theJsVar = transport.responseText; alert(theJsVar); }});