var myRESTurl = "..." ;

$.ajax({
    ...
    complete: function(xhr, status) {

                alert("OK!");

        $( document.body ).append("<iframe src=' " + myRESTurl +  " '
></iframe>") ;

    }
...
}) ;

Since you are testing REST end point reply, which returns "text/xml"
mime type, you can assign it to IFRAME src. In all browsers this will
show nicely formated and coloured xml.

Above is the core solution. One can style the iframe, re-use one
iframe, find some jquery iframe plugin, etc ...

PS: this is easier solution than using dreaded window.open()

Reply via email to