Ver Mensaje Individual
  #2 (permalink)  
Antiguo 30/04/2015, 14:57
Avatar de Fabu_dina
Fabu_dina
 
Fecha de Ingreso: enero-2004
Mensajes: 425
Antigüedad: 20 años, 4 meses
Puntos: 1
Respuesta: NO FUNCIONA un codigo

sOLO SI DEJO EL ALERT FUNCIONA


ajax=nuevoAjax();
window.scrollTo(0,320);
if ( tipo_reporte = 1 )
{
ajax.open("POST", "direccion/portal_x_region.PHP?", true);
}
ajax.onreadystatechange=function()
{
if (ajax.readyState==4)
{
document.getElementById("datos_direccion").innerHT ML=ajax.responseText;
}
}
ajax.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
ajax.send("fecha="+fecha) ;
alert('sss');

App.setPage("elements"); //Set current page
App.init(); //Initialise plugins and elements