简体   繁体   English

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

[英]JQTouch AJAX Link / Content wont load into jqtouch

On my index.html file, I have a link to a script: 在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>

I replaced lookup.php with the default source of ajax.html from jqtouch: 我用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>

And when I click the link, it displays without any of the jqtouch interface. 当我单击链接时,它显示为没有任何jqtouch界面。 It just displays in plain html. 它只是以纯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? 我也在使用expressionengine,所以我感觉可能是罪魁祸首,但是有人可以解决此问题吗?

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 另外,我还注意到,当我单击链接时,地址栏显示的是m.blah.com/scripts/lookup.php而不是m.blah.com/#get

OK, I figured it out... 好,我知道了...

slideSelector: "div#myList a" slideSelector:“ div#myList a”

it works now. 现在有效。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM