Xml não carrega xsl

0 respostas
S

meu primeiro tópico - perdão às falhas

tenho os arquivos html, ajax.js e intrucao.js como segue
ao clicar em “agar.xml” a folha de estilo “agas.xsl” não é carregada
que há no código que deva ser mudado?
//meu entendimento é pouco - copio códigos e vou modificando -
tenho um html conforme segue…

Carregando Página em DIV / AJAX

sendo o arquivo ajax…

function GetXMLHttp() {

if(navigator.appName == “Microsoft Internet Explorer”) {

xmlHttp = new ActiveXObject(“Microsoft.XMLHTTP”);

}

else {

xmlHttp = new XMLHttpRequest();

}

return xmlHttp;

}

var xmlRequest = GetXMLHttp();

e o arquivo instrucao…

function abrirPag(valor){
var url = valor;

xmlRequest.open("GET",url,true);    
xmlRequest.onreadystatechange = mudancaEstado;
xmlRequest.send(null);

    if (xmlRequest.readyState == 1) {
        document.getElementById("conteudo_mostrar").innerHTML = "<img src='loader.gif'>";
    }

return url;

}

function mudancaEstado(){

if (xmlRequest.readyState == 4){

document.getElementById(conteudo_mostrar).innerHTML = xmlRequest.responseText;

}

}
Criado 5 de setembro de 2018
Respostas 0
Participantes 1