jQTouch execute code when AJAX page is loaded

后端 未结 2 615
你的背包
你的背包 2021-01-25 07:10

When the content is static:

Click


        
相关标签:
2条回答
  • 2021-01-25 08:05

    Take a look at the demo, in particular the "GET Example" under AJAX section. Essentially, you want to have the anchor element to link to a page which returns a "jQTouch page", i.e. <div id="pageID">...</div>.

    So, in your case, you may have this anchor:

    <a href="page.html" class="slide">Click</a>
    

    And the page.html may be something like:

    <div id="ajaxPage">
      <div class="toolbar"><h1>Title</h1></div>
      <div>
        <ul>
          <li>item 1</li>
          <li>item 1</li>
        </ul>
      </div>
    </div>
    
    0 讨论(0)
  • 2021-01-25 08:06

    This question pertains to jqtouch which makes AJAX requests from regular anchor tags

    0 讨论(0)
提交回复
热议问题