Código PHP:
   <script language="javascript"> 
 
function nuevoAjax(){ 
  var xmlhttp=false;
  try { 
     xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");  
   } catch (e) { 
     try { 
     xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); 
     } catch (E) { 
     xmlhttp = false; 
     } 
   } 
 
if (!xmlhttp && typeof XMLHttpRequest!='undefined') { 
   xmlhttp = new XMLHttpRequest(); 
   } 
   return xmlhttp; 
} 
 
function cargarContenido(datasource,divID,varContent){ 
   var contenedor; 
   var wVar = varContent; 
   contenedor = document.getElementById(divID); 
   
   ajax=nuevoAjax(); 
   var site = wVar; //"Este es un ejemplo"; //document.form.r_alum.value //Esta variable obtiene el valor de lo q puso el usuario en el textbox nombre 
   ajax.open("GET", "contindex.php?"+"&"+"site="+site,true); 
   ajax.onreadystatechange=function() { 
   if (ajax.readyState==4) { 
      contenedor.innerHTML = ajax.responseText 
      } 
   } 
   ajax.send(null) 
} 
 
</script> 
   Código PHP:
   $site=$_GET['site'];// USo GET para capturar variable; funciona OK
 
switch ($site) {
case 'Abues':
// En este caso quiero usar unswf, PERO NO LO CARGA ??????
  echo "<div id=\"dd_bb\" style=\"width:600px; height:380px;\">
<script>runSWF(\"./data_abuelos.swf\", \"600\", \"380\",\"7,0,19,0\",\"#ffffff\",\"\",true);</script>
</div>";
  break;
break;
 
case "Servs":
echo "<h2 style=\"color:#FFFFFF\">PROGRAMA DE ACTIVIDADES</h2>\n";
echo "<p><span style=\"font-size:120%; font-weight:bold; \">Presentacion</p>\n";
echo "<h5>Viernes 13 de Junio</h5>";
break;
 
default: // Inicio
echo "<p>INFORMACION GENERAL, Aqui lo que aparece inicialmente";
 
} 
    que poniendolo normalmente en mipagina.html, pero llamado con ajax no, a que se debera? sabe alguien, que me pueda ayudar xfax?!
 
