Re: Permission denied to call method XMLDocument.load
"Daniel Frechette" <daniel_@_treknowledge_._com>
| Newsgroups | gmane.comp.mozilla.devel.layout.xslt |
|---|---|
| Organization | TreKnowledge Inc. |
| Message-ID | <[email protected]> |
I have seen other examples that set a "async" flag to false. Isn't this suppose to replace the use of the onload handler? Daniel "Martin Honnen" <[email protected]> wrote in message news:[email protected]... > > > Daniel Frechette wrote: > >> Here is a new version of my viewer. With this new version I no longer get >> the "Permission denied" message; however, I still cannot get a valid >> result. The code hangs when it reaches "xslDoc.load(xslFile)". You can >> try it yourself at http://treknowledge.com/dmsxpert/foxyXSLTViewer.htm. > >> function ApplyStylesheet(xmlFile, xslFile) { >> var html = null; >> try { >> var xmlDoc = document.implementation.createDocument("", >> "test", null); >> xmlDoc.load(xmlFile); > > You need to set up an onload handler to wait till the document is loaded > before you try to transform it. > > > -- > > Martin Honnen > http://JavaScript.FAQTs.com/