I have a page with a dialog window which sends ajax post data to server and receives a response. During development, there can be two responses - one regular (this is not th
Have you tried just simply creating an element and inserting the returned error page into the element? I do this with error pages and jQuery.
var errorContainer = $( '' ); errorContainer.html( errorTextResponse ); errorContainer.appendTo( $( 'body' ) );