Sorry...read this one last..and skip the duplicates (excepting one) above
"Seamus" <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.layout.xslt |
|---|---|
| Organization | Another Netscape Collabra Server User |
| Message-ID | <[email protected]> |
Apologies for the multiple posts, my MS client was having issues.
The change I made to the prototype.load from what was working in other
browsers was as follows:
originally I specified:
Document.prototype.__load__ = Document.prototype.load;
Document.prototype.load = _Document_load;
but had to comment out the call to //this.__load__(strURL); in
Netscape because it was giving me a
"too much recursion error". Now I set a global to the "old" load (DocLoad)
and set it as below...
function _Document_load(strURL) {
//set the parseError to 0
this.parseError = 0;
//change the readyState
// changeReadyState(this, 1);
//change the readyState
this.readyState = 1;
//if there is an onreadystatechange event handler, run it
if (this.onreadystatechange != null &&
typeof this.onreadystatechange == "function") {
this.onreadystatechange();
}
try {
//call the original load method
//this.__load__(strURL);
Document.prototype.load = DocLoad;
this.load(strURL);
Document.prototype.load = _Document_load;
} catch (objException) {
//set the parseError attribute
this.parseError = -9999999;
//set readyState to 4, we are done loading
changeReadyState(this, 4);
}
}
"Seamus" <[email protected]> wrote in message
news:[email protected]...
> Thank for the info. In other news, I can't seem to be able to load the
> XSL doc with the usual:
>
> xslDoc = getDomDoc();
> xslDoc.async = false;
>
> xslDoc.addEventListener("load",
> function(evt) {_Document_onload_XSLT(xslDoc);}, false);
> xslDoc.load(xslSourceURI);
>
> where _Document_onload_XSLT is simply :
>
> objDOMDocument.readyState = 4;
>
> //if there is an onreadystatechange event handler, run it
> if (objDOMDocument.onreadystatechange != null &&
> typeof objDOMDocument.onreadystatechange == "function") {
> objDOMDocument.onreadystatechange();
> }
>
> Any special Netscape way of loading docs from URIs?
>
>
>
> "Seamus" <[email protected]> wrote in message
> news:[email protected]...
>>I know, I know...you might think it odd but I need to be able to perform
>>XSLT transforms in Netscape 6.1 or 6.2. I tried 6.0 but when it didn't
>>even recognize XSLTProcessor I moved on. I currently have a X-browser
>>impl for this process written for Mozilla Firefox 1.0 and IE. Netscape
>>6.2, however, seems to have have a different API for using
>>processors/stylesheets. The resource I have used to this point has been:
>>
>> http://www.webreference.com/programming/javascript/domwrapper/index.html
>>
>> which states it supports Netscape 6.1+..hmmm not so much.
>>
>>
>> Any ideas would be greatly appreciated.
>>
>>
>> Seamus
>>
>
>