Replace current page with ajax content

前端 未结 9 1283
南旧
南旧 2020-12-05 04:50

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

9条回答
  •  囚心锁ツ
    2020-12-05 05:14

    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' ) );

提交回复
热议问题