Hi, I'm using Javascript inside of an xsl to format the xml data. I want to display the next page in a pop-up window, but can't seem to get transformNode function to work with window.open. Any Ideas?
Well, I've solved my own question, here is one way of doing it:
Code:
var newWindow=window.open('','','toolbars=no')
newWindow.document.open()
newWindow.document.write(objNode.transformNode(objXsl))
newWindow.document.close()
The above is inside a function and replaces the empty pop-up window with my transformed xsl/xml.
Please let me know if there is a better way!
Thanks
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.