如何将 AJAX 加载添加到 Niall Doherty 的 Coda Slider?
我正在将 Niall Doherty 的 Coda Slider 实现到网页正文中。问题是我的客户拥有的内容量给页面带来了大量的加载时间。
我想做的是将内容分割成单独的 html 文件,然后单击选项卡触发器,加载内容,然后为开关设置动画。
老实说,我不知道如何做到这一点,所以遗憾的是我无法提供任何虚假代码来帮助说明我的观点。任何和所有的帮助将不胜感激。我在 Coda 论坛上搜索过这样的解决方案,但我得到的只是人们声称拥有它,但无意提供帮助。
干杯。
I'm implementing Niall Doherty's Coda Slider into the body of a webpage. The problem with this is the amount of content my client has gives the page a massive load time.
What I would like to do is to split the content off into seperate html files and upon clicking on the tab trigger, load the content, then animate the switch.
I honestly have no idea how to do this so I sadly can't provide any faux code in an effort to help illustrate my point. Any and all help will be very appreciated. I have searched around the Coda Forums for such a solution but all I've gotten is people claiming to have it and no intent to help.
Cheers.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
最简单的方法是将其存储在一个 html 文件中,并
直接从 jquery 文档中使用 load() 检索它:
如果这仍然很慢,只需将其分成多个页面,然后一次加载一页,
我不完全确定这是最好的方法,但你可以这样做:
将 id 添加到 div class="panel-wrapper" id= “面板1”
The simplest way would be to store it in one html-file and retrieve it using load()
straight from the jquery docs:
If this is still to slow just split it up in multiple pages and just load one page at a time
I'm not entirely sure this the best way but you could do:
Add an id to div class="panel-wrapper" id="panel1"