Que tal
andruxand,
Por un lado, que bueno ver algo diferente de jQuery y por otro estas utilizando Prototype a medias, si son dos botones nada mas, podrias hacer algo asi(sustitui la funcion timer por lo que sigue y elimina los onclick de los elementos):
Código Javascript
:
Ver originalvar updater = function(target, url, params) {
return new Ajax.PeriodicalUpdater(target, url, params || {
method: 'get', frequency: 1, decay: 2
});
}
document.observe('dom:loaded', function() {
$('boton1').observe('click', function(e){
e.stop();
this.stopObserving('click');
updater('contenido', 'alertas.php');
});
$('boton2').observe('click', function(e){
e.stop();
this.stopObserving('click');
updater('contenido', 'alertas_com.php');
});
});
Saludos.