[英]AJAX load in the same page not in popUp
我嘗試在彈出窗口中加載頁面鏈接...在添加此腳本后,頁面加載在頁面底部...如何在彈出窗口中打開???
$('a[rel="ajax:jmodal"]').click(function(event) {
$.ajax({
url: $(this).attr('href'),
success: function(newHTML, textStatus, jqXHR) {
$(newHTML).appendTo('body').jmodal();
},
error: function(jqXHR, textStatus, errorThrown) {
// Handle AJAX errors
}
// More AJAX customization goes here.
});
return false;
});
為什么不嘗試使用Bootstrap對話框。 見鏈接
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.