Foros del Web » Programando para Internet » Javascript »

"Error: Automation server can´t create object"

Estas en el tema de "Error: Automation server can´t create object" en el foro de Javascript en Foros del Web. Hola a todos, tengo un problemita, estoy utilizando un js para extraer un parametro de un URL y enviarlo a un XSL, me funciona bien ...
  #1 (permalink)  
Antiguo 19/07/2007, 15:57
Ro!
 
Fecha de Ingreso: febrero-2007
Mensajes: 14
Antigüedad: 17 años, 2 meses
Puntos: 0
"Error: Automation server can´t create object"

Hola a todos, tengo un problemita, estoy utilizando un js para extraer un parametro de un URL y enviarlo a un XSL, me funciona bien en mi navegador pero varios amigos me han dicho que la pagina no carga y le aparece el siguiente error de JS, "Error: Automation server can´t create object"

Estuve investigando y supuestamente puede ser porque estoy utilizando ActiveXObject.

La verdad no se mucho de todo esto

Alguien me podría decir como reemplazarlo? les anexo mi código js para ver si me pueden ayudar

<SCRIPT LANGUAGE="javascript">
function delineate(str)
{
theleft = str.indexOf("=") + 1;
theright = str.lastIndexOf("&");
if (theright<1)
{return(str.substring(theleft));}
else
{return(str.substring(theleft, theright));}
}

function load()
{
var locate = window.location
document.form1.param1.value = locate
var text = document.form1.param1.value
//document.write("Parameter1 is " +delineate(text));
xml = new ActiveXObject("Msxml2.DOMDocument.4.0");
xml.async = false;
xml.load("../xml/CB01.xml");
xsl = new ActiveXObject("Msxml2.FreeThreadedDOMDocument.4.0" );
xsl.async = false;
xsl.load("../xml/viewImage.xsl");
template = new ActiveXObject("Msxml2.XSLTemplate.4.0");
template.stylesheet = xsl;
processor = template.createProcessor();
processor.input = xml;
processor.addParameter("id", delineate(text));
processor.transform();
document.write(processor.output);
}
</SCRIPT>

Gracias de Antemano!!!!
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 17:07.