JQTouch AJAX 链接/内容不会加载到 jqtouch 中
在我的 index.html 文件中,我有一个脚本链接:
<div id="myList">
<div class="toolbar">
<h1>myList</h1>
<a class="back" href="#home">Home</a>
</div>
<ul class="rounded">
<li class="arrow"><a href="/scripts/lookup.php?id=3294&oid=492">Affiliation</a></li>
</ul>
我用 jqtouch 中的 ajax.html 的默认源替换了lookup.php:
<div id="get">
<div class="toolbar">
<h1>GET Example</h1>
<a class="back" href="#">AJAX</a>
</div>
<div class="info">
This page was loaded via AJAX.
</div>
<ul class="rounded">
<li><a href="#livetest">Test live events</a></li>
</ul>
</div>
<div id="livetest">
<div class="toolbar">
<h1>Events test</h1>
<a class="back" href="#">AJAX</a>
<a class="button goback" href="#home">Home</a>
</div>
<div class="info">
This is a test of live events.
</div>
</div>
当我单击该链接时,它会显示没有任何 jqtouch 界面。它仅以纯 html 形式显示。我也在使用表达式引擎,所以我有一种感觉,这可能是罪魁祸首,但有人可以提供解决这个问题的方法吗?
另一方面,我还注意到,当我单击链接时,地址栏显示 m.blah.com/scripts/lookup.php 而不是 m.blah.com/#get
On my index.html file, I have a link to a script:
<div id="myList">
<div class="toolbar">
<h1>myList</h1>
<a class="back" href="#home">Home</a>
</div>
<ul class="rounded">
<li class="arrow"><a href="/scripts/lookup.php?id=3294&oid=492">Affiliation</a></li>
</ul>
I replaced lookup.php with the default source of ajax.html from jqtouch:
<div id="get">
<div class="toolbar">
<h1>GET Example</h1>
<a class="back" href="#">AJAX</a>
</div>
<div class="info">
This page was loaded via AJAX.
</div>
<ul class="rounded">
<li><a href="#livetest">Test live events</a></li>
</ul>
</div>
<div id="livetest">
<div class="toolbar">
<h1>Events test</h1>
<a class="back" href="#">AJAX</a>
<a class="button goback" href="#home">Home</a>
</div>
<div class="info">
This is a test of live events.
</div>
</div>
And when I click the link, it displays without any of the jqtouch interface. It just displays in plain html. I'm also using expressionengine so I have a feeling that might be the culprit but can someone provide a work-around for this problem?
On another note, I also notice that when I click the link the address bar shows m.blah.com/scripts/lookup.php instead of m.blah.com/#get
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好的,我想通了...
lideSelector: "div#myList a"
现在可以使用了。
OK, I figured it out...
slideSelector: "div#myList a"
it works now.