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

ajax.updater no ejecuta js y php

Estas en el tema de ajax.updater no ejecuta js y php en el foro de Frameworks JS en Foros del Web. hola amigos no puedo salir de este problema, ya busque por los foros pero no encuentro solucion, haber si me dan una mano es colocar ...
  #1 (permalink)  
Antiguo 02/02/2010, 23:00
 
Fecha de Ingreso: octubre-2009
Mensajes: 9
Antigüedad: 14 años, 6 meses
Puntos: 0
ajax.updater no ejecuta js y php

hola amigos

no puedo salir de este problema, ya busque por los foros pero no encuentro solucion, haber si me dan una mano

es colocar el archivo segundo.php en un DIV, si lo muestra en la DIV pero no EJECUTA el JAVASCRIPT y el CODIGO PHP.

aqui pongo los codigos:

INDEX.HTML---------------------------------------
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento sin título</title>
<script type="text/javascript" src="ajax/prototype-1.6.0.3.js"></script>
<script type="text/javascript">

function cargarDiv(){
new Ajax.Updater($('dos'),'segundo.php',
{method: 'get',asynchronous:true,evalScripts: true} );
}
</script>
</head>
<body>
<div id="uno" style="width:30%; float:left; height:300px">
<input name="ver" type="button" value="ver" onclick="cargarDiv();" />
</div>
<div id="dos" style="width:70%; float:left; height:300px">
</div>
</body>
</html>
---------------------------------------------------------------
EL OTRO ARCHIVO
SEGUNDO.PHP------------
<?php
if (isset($_POST['texto']))
{ echo "<h1> ok php </h1>"; }
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento sin título</title>
<script language="javascript">
function poner()
{ document.getElementById('texto').value="ok"; }
</script>
</head>

<body>
ejemplo01
<form action="" method="post">
<input name="texto" id="texto" type="text" />
<input name="js" type="button" value="js" onclick="poner();" />
<input name="submit" type="submit" value="submit" />

</form>
</body>
</html>
  #2 (permalink)  
Antiguo 03/02/2010, 05:42
Avatar de jackson666  
Fecha de Ingreso: noviembre-2009
Ubicación: Buenos Aires, Argentina
Mensajes: 1.971
Antigüedad: 14 años, 5 meses
Puntos: 65
Respuesta: ajax.updater no ejecuta js y php

Que framework estas usando?
__________________
HV Studio
Diseño y desarrollo web
  #3 (permalink)  
Antiguo 03/02/2010, 17:54
 
Fecha de Ingreso: octubre-2009
Mensajes: 9
Antigüedad: 14 años, 6 meses
Puntos: 0
Respuesta: ajax.updater no ejecuta js y php

hi jackson

el framework del ajax es prototype 1.6. y trabajo sobre el wampserver 2.

Etiquetas: ajax, js, php
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 09:51.