JQTouch AJAX 链接/内容不会加载到 jqtouch 中

发布于 2024-09-06 14:06:05 字数 1414 浏览 1 评论 0原文

在我的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

蓝海似她心 2024-09-13 14:06:05

好的,我想通了...

lideSelector: "div#myList a"

现在可以使用了。

OK, I figured it out...

slideSelector: "div#myList a"

it works now.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文