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!

opening a window in Javascript and writing XUL in it

Status
Not open for further replies.

thoms

Programmer
May 27, 2002
4
BE
My Mozilla client would need to recieve an XUL string (a string of XUL
tags forming a valid XUL document) and to 'inject' it a a window that
it would have opened.
Solution 1 : window.document.write(). But it only works with HTML
content!
Solution 2 : window.document.open(ContentType) for telling mozilla
that the document wil be of XUL type. After that, I can use DOM
functions to insert the XUL content in it. Unfortunately,
window.document.open(contentType) only works with HTML contentType!
Solution 3 : loading in the opend widow an empty XUL file (so that
Mozilla sets the correct contentType) and filling it with XUL tags via
DOM functions. But it doesn't work! (Why?)

So, I can I load my XUL string in my window.document??? Any other
idea?

Thoms.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top