The REST service requires custom authorization headers, parameters and
various methods (GET, PUT, POST, and DELETE) which is why I can't just
pass a URL.

The earlier solution was better for this.

On Sep 17, 5:33 am, DBJDBJ <dbj...@gmail.com> wrote:
> 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