Ver Mensaje Individual
  #2 (permalink)  
Antiguo 16/06/2008, 17:06
Avatar de Panino5001
Panino5001
Me alejo de Omelas
 
Fecha de Ingreso: mayo-2004
Ubicación: -34.637167,-58.462984
Mensajes: 5.148
Antigüedad: 20 años
Puntos: 834
Respuesta: cargar pelicula flash dentro de div con ajax

No entiendo bien cuál es la dificultad, porque con innerHTML puede cargarse como cualquier código html:
Código PHP:
<!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=iso-8859-1" />
<
title></title>
<
script>
function $(
id){return document.getElementById(id);}
window.onload=function(){
    var 
response='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="825" height="575">    <param name="movie" value="home.swf" />    <param name="quality" value="high" />    <embed src="home.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="825" height="575"></embed>  </object>';
    $(
'pp').innerHTML=response;
}
</script>
</head>

<body>
<div id="pp"></div>
</body>
</html>