•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the RSS, Web Services and SOAP section within the Web Development category of DaniWeb, a massive community of 397,853 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,385 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our RSS, Web Services and SOAP advertiser:
Views: 1517 | Replies: 1
•
•
Join Date: Oct 2007
Posts: 8
Reputation:
Rep Power: 0
Solved Threads: 0
Hi Guys...
I'm having problem with XML transformation. I have this code where I click a link that will open a new window that is referenced to XML. It works fine in IE but in Firefox, a new window is opened and the contents are not displayed.
Here's a code snippet:
if (window.ActiveXObject) //code for IE
{
xslDoc=new ActiveXObject("Microsoft.XMLDOM");
xslDoc.async=false;
xslDoc.load(xslPath);
transformxsl();
}
//code for Mozilla, Firefox
else (document.implementation && document.implementation.createDocument)
{
xslDoc=document.implementation.createDocument("","",null);
xslDoc.load(xPath);
xslDoc.onload=transformxsl;
}
function transformxsl()
{
var OpsDocStr = xmlDoc.transformNode (xslDoc)
document.getElementById("it").innerHTML = OpsDocStr //xmlDoc.transformNode (xslDoc)
}
The line in red is where the error is: xmlDoc.transformNode is not a function
Can anyone help me???
Will really appreciate it. Thanks.
I'm having problem with XML transformation. I have this code where I click a link that will open a new window that is referenced to XML. It works fine in IE but in Firefox, a new window is opened and the contents are not displayed.
Here's a code snippet:
if (window.ActiveXObject) //code for IE
{
xslDoc=new ActiveXObject("Microsoft.XMLDOM");
xslDoc.async=false;
xslDoc.load(xslPath);
transformxsl();
}
//code for Mozilla, Firefox
else (document.implementation && document.implementation.createDocument)
{
xslDoc=document.implementation.createDocument("","",null);
xslDoc.load(xPath);
xslDoc.onload=transformxsl;
}
function transformxsl()
{
var OpsDocStr = xmlDoc.transformNode (xslDoc)
document.getElementById("it").innerHTML = OpsDocStr //xmlDoc.transformNode (xslDoc)
}
The line in red is where the error is: xmlDoc.transformNode is not a function
Can anyone help me???
Will really appreciate it. Thanks.
Last edited by Dennis_Phils : Dec 6th, 2007 at 5:45 am.
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb RSS, Web Services and SOAP Marketplace
•
•
•
•
api asp bebo beta blogger blogging bon browser browsers code development dom echo email encryption europe feed firefox gdata google html internet internet explorer javascript katemodern linux lonelygirl15 microsoft mozilla news open-source patch programming reader rss security software standards super testing users victory video w3c weather web webmail xml xoap youtube
- Previous Thread: soap security
- Next Thread: Trying to add a Form in XML to my website.



Threaded Mode