开发者

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

开发者 https://www.devze.com 2022-12-16 06:28 出处:网络
load a page with开发者_开发技巧 AJAX in a jQuery UI dialog without iframeActually 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 loadin

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

精彩评论

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