Foros del Web » Programando para Internet » Javascript » Frameworks JS »

Que falla aquí? AJAX + ASP

Estas en el tema de Que falla aquí? AJAX + ASP en el foro de Frameworks JS en Foros del Web. Hola. Seguro que es una tonteria... pero que pasa aqui para que no funcione? @import url("http://static.forosdelweb.com/clientscript/vbulletin_css/geshi.css"); Código HTML: Ver original <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML ...
  #1 (permalink)  
Antiguo 29/01/2010, 13:14
 
Fecha de Ingreso: marzo-2008
Mensajes: 383
Antigüedad: 16 años, 1 mes
Puntos: 5
Que falla aquí? AJAX + ASP

Hola. Seguro que es una tonteria... pero que pasa aqui para que no funcione?

Código HTML:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2.  
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head runat="server">
  5.     <title></title>
  6.     <script Language="JavaScript">
  7.  
  8.         function cargaContenido1() {            
  9.             var ajax = nuevoAjax();
  10.  
  11.             ajax.open("GET", "ajax2.aspx?nombre=Carlos", true);
  12.             ajax.onreadystatechange = function() {
  13.                 if (ajax.readyState == 4) {
  14.                     alert(ajax.responseText);
  15.                 }
  16.             }
  17.             ajax.send(null);
  18.         }
  19.  
  20. </head>
  21.  
  22. <body onLoad="cargaContenido1()">
  23.  
  24.     <form id="form1" runat="server">
  25.     <div>
  26.    
  27.     </div>
  28.     </form>
  29. </body>
  30. </html>

Código ASP:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2.  
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head runat="server">
  5.     <title></title>
  6. </head>
  7. <body>
  8.     <form id="form1" runat="server">
  9.     <div>
  10.     <&#37;Response.Write(Request("nombre"))%>
  11.  
  12.     </div>
  13.     </form>
  14. </body>
  15. </html>

Última edición por cslbcn; 29/01/2010 a las 13:21

Etiquetas: ajax, aquí, asp, falla
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 19:06.