开发者

load a page with AJAX in a jQuery UI dialog without iframe

load a page with开发者_开发技巧 AJAX in a jQuery UI dialog without iframe


Actually you can get the output of an ASP.NET page via ajax and place it in jQuery UI dialog but I wouldn't consider it loading an ASP.NET page in the scrict sense as no postback/callback would ever work.


First, do your AJAX request to get the page, then put the contents in an element, then instantiate the dialog:

$.get('YourPage.aspx', function(html) {
    $('div').html(html).dialog();
});
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜