jQuery Accordion 由 XML 文件填充,如何实现?
我要在这里拔掉我的头发!是否有教程或片段可以帮助我创建由 XML 文件驱动/填充的手风琴?
目前我的 XML 文件加载正常,但每个条目都出现在单个折叠标头中..显然我需要不同的折叠式东西中的每个 XML 块..
我头疼!
更新:
<forces>
<force>
<region>ACPO London Region></region>
<name>City of London Police</name>
<url>cityoflondon.police.uk</url>
<address>37 Wood Street London EC2P 2NQ</address>
<phone>020 7601 2455</phone>
<logo>logo_city.gif</logo>
</force>
...
<forces>
I'm pulling my hair out here! Is there a tutorial or snippets to enable me to create an accordion that is powered/populated by an XML file?
Currently my XML file is loaded ok, but every entry appears in a single accordion header.. obviously I need each XML chunk in a different accordion thingy..
My head hurts!
update:
<forces>
<force>
<region>ACPO London Region></region>
<name>City of London Police</name>
<url>cityoflondon.police.uk</url>
<address>37 Wood Street London EC2P 2NQ</address>
<phone>020 7601 2455</phone>
<logo>logo_city.gif</logo>
</force>
...
<forces>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我昨晚刚刚写了这个工具,可能会对你有所帮助。我知道您已经有好几个月没有遇到这个问题了,但请告诉我您的想法!现在可能会有帮助。
http://lytsp33d.com/xml-to-jquery-accordion/
最好的问候,
扎克
I just wrote this tool last night that may help you. I know it's been many months since you had this problem but let me know what you think! It may be helpful now.
http://lytsp33d.com/xml-to-jquery-accordion/
Best regards,
Zach