Fork me on GitHub

Pagesetter : Use ajax tab to separate database request  Bottom

  • Hi,

    My last template was too long to load because of number of request to display the lot of child (parent/child relation). There was until 200 request to display a publication !
    The only solution that I've found is to use an Ajax tab to seperate requests of differentes inlinePubList.
    The Ajax tab script that i've found works like that :

    Code

    <ul id="maintab" class="shadetabs">
      <li class="selected"><a href="#default" rel="ajaxcontentarea">Intro</a></li>
    <li><a href="external.htm" rel="ajaxcontentarea">Bird</a></li>
    <li><a href="external2.htm" rel="ajaxcontentarea">Dog</a></li>
    <li><a href="external3.htm" rel="ajaxcontentarea">Cat</a></li>
    <li><a href="external4.htm" rel="ajaxcontentarea">Sea Otter</a></li>
    </ul>

    Where wich external.htm is a different page.

    So my question is : what can I need to put in different external.htm to display my inlinePubList ?

    Thanks for your help

    NB : I use this script : http://www.dynamicdrive.com/dynamicindex17/ajaxtabscontent/

    (NB : Comme ca sera surement encore Videokid qui va me répondre, si jamais mes explications ne sont pas clairs et que tu veux bien m'aider, tu peux me contacter par mail starguezer [_AT_] gmail [_DOT_] com)
  • I've tried to do it but in each tabs, it displays the full site !

    I use it like that

    Code

    <li>
         <a href="<!--[pnmodurl modname=pagesetter func=viewpub tid=$core.tid pid=$core.pid tpl=tab-Episodes]-->" rel="ajaxcontentarea">Episothèque</a>
      </li>


    You can see it here : http://start5g.ovh.net/~seriespa/index.php?module=Pagesetter&func=viewpub&tid=4&pid=34

    Did anybody knows how I can only displays data but not the full site ?

    It works well here but without Ajax, so with IE it refresh the page :(
    http://www.seriesparadise.com/index.php?module=Pagesetter&func=viewpub&tid=4&pid=34&title=A.LA.MAISON.BLANCHE

This list is based on users active over the last 60 minutes.