【发布时间】:2011-01-26 02:56:38
【问题描述】:
我正在使用 jquery colorbox 在窗口中弹出用户帐户。我还有一个按钮,可以通过 ajax 将更多用户加载到页面中,但由于某种原因,加载了 ajax 的用户不会在颜色框窗口中弹出。如何让 colorbox 处理通过 ajax 返回的内容?
function loadMore(pageNo) {
//$("#loading").html('Loading...').show();
var url = '/search/resultsAjax';
$.get(url, {page: pageNo}, function(response) {
$("#results").append(response);
//$("#loading").hide();
});
}
$(document).ready(function() {
var currPage = 1;
$("a.next").click(function() {
loadMore(++currPage);
});
$("a.usr").colorbox({width:"960px", height:"90%", iframe:true});
});
【问题讨论】:
标签: javascript jquery colorbox