This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > Mozilla XSLT > June 2005 > Sorry...read this one last..and skip the duplicates (excepting one) above
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Sorry...read this one last..and skip the duplicates (excepting one) above
|
|
| Seamus 2005-06-03, 7:51 pm |
| 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" <fake@fake.com> wrote in message
news:cuvr73$s8u1@ripley.netscape.com...
> 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" <fake@fake.com> wrote in message
> news:cutnit$o6r64@ripley.netscape.com...
>
>
| |
| Seamus 2005-06-03, 7:51 pm |
| Also..last time I had issues with this it was due to MIME types....I am
mapping:
<mime-mapping>
<extension>xml</extension>
<mime-type>text/xml</mime-type>
</mime-mapping>
<mime-mapping>
<extension>xslt</extension>
<mime-type>application/xml</mime-type>
</mime-mapping>
<mime-mapping>
<extension>xsl</extension>
<mime-type>application/xml</mime-type>
</mime-mapping>
"Seamus" <fake@fake.com> wrote in message
news:cuvs1g$9e1@ripley.netscape.com...
> 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" <fake@fake.com> wrote in message
> news:cuvr73$s8u1@ripley.netscape.com...
>
>
|
|
|
| | Copyright 2003 - 2009 forum4designers.com Software forum Computer Hardware reviews |
|