我有一个$(文件)。就绪监听器在这个非常基本的代码(“请求的内容不能被加载。”):的fancybox 2未能显示AJAX内容
$('#contact-us-button').fancybox({
padding: 20,
beforeLoad: function() {
$("#slideshow").data('nivoslider').stop();
},
afterClose: function() {
$("#slideshow").data('nivoslider').start();
}
});
$('.get-a-quote').fancybox({
padding: 20,
beforeLoad: function() {
$("#slideshow").data('nivoslider').stop();
},
afterClose: function() {
$("#slideshow").data('nivoslider').start();
}
});
尽管HTML:
<a id="contact-us-button" href="impianto/get-a-quote-form.php"></a>
[...]
<div class="product">
<h1>Ferrari California</h1>
<a href="dettaglio.php?id=7">
<img src="images/showcase/ferrari-california-showcase.jpg" />
</a>
<a class="get-a-quote" href="impianto/get-a-quote-form.php?id=7"></a>
</div>
的fancybox正确结合,但显示了地方我表单该消息。类名和ID之间没有冲突。有任何想法吗?请注意,Fancybox 1.3.4的行为与大致相同的代码(不同的选项)是正确的。
工程就像一个魅力!谢谢! – 2012-02-09 10:22:47