A ver vamos de nuevo, entre los tags head tenes que tener algo asi:
Código HTML:
Ver original<script type="text/javascript" src="../js/prototype.js"></script> <script type="text/javascript"> var 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');
});
});
y el html deberia ser asi:
Código HTML:
Ver original<body style="padding-top:1%;"> <form name="form1"><table width="160" border="0" align="center"> <td width="75" height="96"> <input type="button" id="boton1" class="boton2" name="Submit" value="" /> <div class="Estilo3" style="position:relative; bottom:10%; width: 75px;"> <div align="center">Radicacion
</div> <td width="75" height="96"> <input type="button" id="boton2" class="boton2" name="Submit2" value="" /> <div class="Estilo5" style="position:relative; bottom:10%; width:75" > <div align="center">Licencia
</div>
<div id="contenido" align="center" style="padding-top:2%"> <div id="precarga" align="center"></div> <!-- .mask -->
</div> <!-- #hero-slider -->
si te sigue sin funcionar, hace un alert en el click de los botones, para comprobar que se setearon correctamente los eventos, asi:
Código Javascript
:
Ver original...
$('boton1').observe('click', function(e) {
alert('__CLICKED__');
e.stop();
this.stopObserving('click');
updater('contenido', 'alertas.php');
});
bueno proba y nos comentas.