Ver Mensaje Individual
  #2 (permalink)  
Antiguo 30/07/2015, 14:49
Avatar de Luisa29
Luisa29
 
Fecha de Ingreso: enero-2013
Mensajes: 193
Antigüedad: 12 años
Puntos: 4
Respuesta: FB.XFBML.parse No me funciona, no sé donde puede estar el fallo

Ya di con el fallo !!!!!!

Había que cargar FB.XFBML.parse(); luego de actualizar la InnerHTML y yo lo colocaba aparte. El código ajax quedaría así:

Código:
   function nuevoAjax(){
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 cargarbio(pagina,destino){
var contenedor;
var ajax;

contenedor = document.getElementById(destino);
ajax = nuevoAjax();
ajax.open("GET", pagina, true);
ajax.onreadystatechange=function() {
if (ajax.readyState==4) {
contenedor.innerHTML = ajax.responseText;




FB.XFBML.parse(document.getElementById('contenido-texto'), function() {        
    document.getElementById('yourContent').innerHTML += document.getElementById('contenido-texto').innerHTML;
});



}
}
ajax.send(null);
}
Marco como solucionado.