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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Displaying XML in a pop up window

Status
Not open for further replies.

week

MIS
Feb 14, 2001
118
0
0
US
I have a script like this:

function clickWindowOpen(){
with (frmCallXX){
var res = efOutput.value;
var newWindow = window.open("","new");
newWindow.document.open("text/xml");
newWindow.document.write(res); }
}

efOutput.value is XML data in string. I need to open a window and display the XML data in collapse-expand fashion. The above script only displays the text value of XML.

Can anybody help me?

Thanks.
 
>> display the XML data in collapse-expand fashion.

I [blue]guess[/blue] you are referring to IE using it’s internal XSLT style sheet to transform XML into an HTML tree display? If so I have not found a way to get IE to use that transform on XML loaded into the document. I have several application that use the browser view embedded and would love to get that working [sadeyes].

For now I have duplicated most of the features of the IE internal XSLT style sheet and am using it to perform the transform myself and then writing the HTML to the document.


-pete
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top