在 Ajax 加载无点击功能后 jquery 和 bootstrap / 照片库
After Ajax load no click function with jquery and bootstrap / Photogallery
加油!
我有一个新问题ajax加载这个(ajax.php):
<div class="wall-img-preview lightbox clearfix">
<div class="wip-item" data-src="media/gallery/2.jpg" style="background-image: url(media/gallery/2.jpg);" data-sub-html="<em><h3>This is a caption heading</h3><p>Here goes the description...</p></em>">
<img src="media/gallery/thumbs/2.jpg">
</div>
</div>
但没有点击功能(带滑动功能的相册 jquery、bootstrap 等...)这是我的 ajax 脚本:
$.ajax({ type: "POST", url: 'appajax.php', data: parameter,
success: function(data)
{
// $('#'+id).html(data);
$('#'+id).html(data).row("refresh");
}
});
我尝试使用跳跳虎并刷新,但没有成功 :( 请帮忙,谢谢!
请纠正你的英文。
据我了解,您的问题是 ajax
加载后页面挂起。请尝试用以下代码替换代码
$.ajax({ type: "POST", url: 'appajax.php', async:false, data: parameter,
success: function(data)
{
// $('#'+id).html(data);
$('#'+id).html(data).row("refresh");
}
});
async
函数将防止 DOM
挂起。
加油!
我有一个新问题ajax加载这个(ajax.php):
<div class="wall-img-preview lightbox clearfix">
<div class="wip-item" data-src="media/gallery/2.jpg" style="background-image: url(media/gallery/2.jpg);" data-sub-html="<em><h3>This is a caption heading</h3><p>Here goes the description...</p></em>">
<img src="media/gallery/thumbs/2.jpg">
</div>
</div>
但没有点击功能(带滑动功能的相册 jquery、bootstrap 等...)这是我的 ajax 脚本:
$.ajax({ type: "POST", url: 'appajax.php', data: parameter,
success: function(data)
{
// $('#'+id).html(data);
$('#'+id).html(data).row("refresh");
}
});
我尝试使用跳跳虎并刷新,但没有成功 :( 请帮忙,谢谢!
请纠正你的英文。
据我了解,您的问题是 ajax
加载后页面挂起。请尝试用以下代码替换代码
$.ajax({ type: "POST", url: 'appajax.php', async:false, data: parameter,
success: function(data)
{
// $('#'+id).html(data);
$('#'+id).html(data).row("refresh");
}
});
async
函数将防止 DOM
挂起。