I am displaying an xml file in a jqxwindow. The xml file is displayed with no carriage returns/newlines. If I display the file via an alert, it displays fine – with all the xml tags, etc, which is exactly what I want. I’d prefer to use jqxwindow though for lots of reasons.
I currently get the data via ajax to display it:
$.ajax({
type: "GET",
url: value,
dataType: "xml",
success: function(data, status, jqXHR){
$('#windowHeader').show();
$('#windowContent').show();
$("#jqxwindow").jqxWindow('open');
var response = '';
response = jqXHR.responseText;
$('#windowContent').text(response);
I’ve tried wrapping the responseText in <textarea>, <xmp> and
tags, all without luck. Any ideas how I can display these files in jqxWindow? Thanks-