Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

transformNode doesn't work with window.open

Status
Not open for further replies.

Deeba

Programmer
May 8, 2002
32
CA
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?

Code:
window.open(objNode.transformNode(objXsl))

Thanks.
 
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 :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top