Thanks for the reply. I downloaded the latest zxml.
js from the location you specified. The example is running fine in both IE and mozilla. I am facing problem if i am implementing the example in another xslt file which is getting transformed on server side and the xslt code is given below.
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>Ajax Exercise</title>
<script type="text/javascript" src="/zapak/
js/zxml.
js"></script>
<script type="text/javascript">
<![CDATA[
function init(sFilename) {
var oReq = zXmlHttp.createRequest();
oReq.onreadystatechange = function () {
if (oReq.readyState == 4) {
if (oReq.status == 200) {
transformXml(oReq.responseText);
}
}
};
oReq.open("GET", sFilename, true);
oReq.send();
}
function transformXml(sResponseText) {
var oXmlDom = zXmlDom.createDocument();
oXmlDom.async = false;
oXmlDom.loadXML(sResponseText);
var oXslDom = zXmlDom.createDocument();
oXslDom.async = false;
oXslDom.load("/xslshow.z?path=/testplayani");
var str = zXslt.transformToText(oXmlDom,oXslDom);
document.getElementById("divBookList").innerHTML = str;
}
]]>
</script>
</head>
<body onload="init('/topbarxml.z')">
<div id="divBookList"></div>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
It is working fine in IE but it doesn't work in mozilla firefox version 1.5.0.7 . i get following errors in java script console....
Error: uncaught exception: Permission denied to call method Location.toString
Error: event.target.rel has no properties
Source File: chrome://global/content/bindings/tabbrowser.xml
Line: 791
Error: uncaught exception: [Exception... "Not enough arguments [nsIXMLHttpRequest.send]" nsresult: "0x80570001 (NS_ERROR_XPC_NOT_ENOUGH_ARGS)" location: "
JS frame ::
http://test2.zapak.com/zapak/js/book.htm :: init :: line 59" data: no]
please help.