为什么 Portfolio Gallery 没有加载到 Ajax/JQuery 窗口 - 需要修复
有人可以告诉我为什么这样:
http://dageniusmarketer.com/DigitalWonderland/pages/Portfolio.html
在自己的页面上工作正常,但是当我尝试使用 ajax 和 jquery 将其加载到我当前的网站(即
dageniusmarketer.com/DigitalWonderland/
)上时,我收到此错误:
this.loader = new GalleryLoader('gallery.xml', 'gallery', "Madeira"); this.prefetching = 'all';
相反按照我想要的方式加载我的画廊? 我真的很想知道如何修复它,因为它已经困扰我几天了。
感谢任何和所有的帮助,
谢谢。
Can someone tell me why this:
http://dageniusmarketer.com/DigitalWonderland/pages/Portfolio.html
works fine on its own page all by iself, but when I try to load it inside my current site using ajax and jquery, which is,
dageniusmarketer.com/DigitalWonderland/
On the portfolio page, i get this error:
this.loader = new GalleryLoader('gallery.xml', 'gallery', "Madeira"); this.prefetching = 'all';
instead of loading my gallery the way i want? Id really like to know how to fix it as its been bugging me for a few days now.
Any and all help is appreciated,
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我在 JavaScript 停用时遇到同样的错误。 只要确保激活 JavaScript 即可。 对于那些出于某种原因禁用了 JavaScript 的用户,我建议提供与此警告不同的内容。 给他们一个提示或者只是一个没有 JavaScript 的不错的替代方案。 还有一件事,请将您的 JavaScript 嵌入到适当的标签中:
I get the same error with JavaScript deactivated. Just make sure you activate your JavaScript. For those users - for whatever reason - have disabled their JavaScript I would suggest to supply something different than just this warning. Give them a hint or just a nice alternative without JavaScript. Just another thing, please embed your JavaScript within an appropriate tag:
一个问题似乎是您正在 div 中加载整个 HTML 页面。 如果您的 AJAX 调用工作正常,您最终会得到如下代码:
如果您确实想要这样的东西,那么最好使用 iframe。
One issue seems to be that you are loading a whole HTML page within a div. If your AJAX call was working properly, you'd end up with code like:
If you really want something like that, you'd be better off using an iframe.