我已经实现了fancybox来呈现来自服务器的ajax内容
以下是fancybox代码
<%= link_to "Disallow Download",reason_path(audio),:class => "reasoning fancybox.ajax" %>
$('.reasoning').fancybox()现在,每当我链接上面的链接时,内容都会从服务器上呈现,但fancybox不会在浏览器上显示它
有什么想法吗?
发布于 2012-08-20 20:26:11
只需在ajax属性中指定dataType即可
$('.reasoning').fancybox({ajax: {
'dataType': 'html'
})它就像魅力一样工作
发布于 2012-08-20 19:49:04
您必须设置fancybox类型选项
$(".reasoning").fancybox({
'type': 'iframe'
});https://stackoverflow.com/questions/12036789
复制相似问题