// console.log(easyventUrl) new Ajax.Request('comparador.php', { method: 'post', parameters: {loadTable: easyventUrl}, onSuccess: function(response){ if (200 == response.status) { // console.log(response.responseText); $j('#table').html(response.responseText); window.location.hash = '#table'; $j('#cargando').hide(); // console.log(response.responseText) } }, onFailure: function(response){ alert('Hubo un error en la petición, intente más tarde'); } });