Ver Mensaje Individual
  #9 (permalink)  
Antiguo 06/07/2006, 11:11
dunete
 
Fecha de Ingreso: diciembre-2004
Mensajes: 79
Antigüedad: 19 años, 5 meses
Puntos: 0
sigo sin aclararme...

pongo en el html

Código:
 <script languaje="JavaScript" scr ="prueba.php"></script>
dentro del prueba.php

Código:
 <?php echo "probando probando"; ?>
pero no me saca nada....

---------------------------------

otra forma

en el html
Código:
 <script languaje="JavaScript scr="prueba.js"></script>
el prueba.js es asi

Código:
var xmlHttp

function showCustomer(str)
{ 
xmlHttp=GetXmlHttpObject()
if (xmlHttp==null)
{
alert ("Browser does not support HTTP Request")
return
} 
var url="prueba.php"
url=url+"?q="+str
url=url+"&sid="+Math.random()
xmlHttp.onreadystatechange=stateChanged 
xmlHttp.open("GET",url,true)
xmlHttp.send(null)
}

function stateChanged() 
{ 
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
{ 
document.getElementById("txtHint").innerHTML=xmlHttp.responseText 
} 
} 

function GetXmlHttpObject()
{ 
var objXMLHttp=null
if (window.XMLHttpRequest)
{
objXMLHttp=new XMLHttpRequest()
}
else if (window.ActiveXObject)
{
objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP")
}
return objXMLHttp
}
y luego el php

Código:
<?php echo"probando probando"; ?>
tampoco saca nada :(