![]() |
Problem using document.write() with XSL under Gecko
Maybe it's just me, but has anyone else had a problem with using document.write() in a JavaScript that is inside an XSL file under Gecko?
It seems to work well for IE6, but Mozilla keeps crashing. Has anyone got any ideas? JKD, you seem to be the Gecko God... do you know? |
document.write() is an HTML-DOM method.
The result of an XSL transformation is XML, such as XHTML. Therefore, the document.write() method shouldn't be present. |
Crashing? You should probably file a bug for that at http://bugzilla.mozilla.org under XSLT, with keyword "crash", and also any Talkback ID you get from Mozilla Talkback (\bin\components\talkback.exe).
|
I have sent it in to BugZilla. I was contacted and told that it would be fixed by the next release, which was supposed to be 1.2. I'm still having problems though.
JKD, thanks. I was unaware of that. The reason I ask is that I use QuickBooks at work. QuickBooks can export to Excel, which can save as XML. I've been using JavaScript to parse time and date data from the generated XML file, but I was hoping to use XSL instead, because CSS seems to work better on an XSLT page that with data imported into an HTML page for some reason. Other JavaScript seems to work fine, including sending information to a SPAN tag using innerHTML... just no document.write(); Thanks anyways... |
If you should use inside an XSL file a script with document.write() and you cannot edit it(some counter for example), the next trick can help:
Code:
<script type="text/javascript"> |
| All times are GMT +1. The time now is 11:02 PM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.