Paging in Query Content Web Part

Hi All,

I'm working with the query content web part, may I know is it possible to customize the web part to adding in a custom paging

Thanks.



Answer this question

Paging in Query Content Web Part

  • microsoft_programmer

    Hi George Perantatos,

    I've try the way you suggested, but now I'm facing a problem, from XSLT I can't get back the page number value that sent to javascript like below:

    <script type="text/javascript">
    urlstring = location.href;
    if(urlstring.indexOf("=") >= 0){
    qrystring=urlstring.substring(urlstring.indexOf("=") + 1, urlstring.length);
    }

    </script>

    <a href=" pagenumber=2">Next &gt; &gt;</a>

    I tried the "msxsl:script" to exchange data between javascript and XSLT but seems like not supported, for example:

    <msxsl:script language="JScript" implements-prefix="my">

    var iSend;

    function setISend(send) {
    iSend = send;
    }

    function getISend() {
    return iSend;
    }
    </msxsl:script>


    <xsl:variable name="temp" select="setISend(4)"/>
    <xsl:value-of select="my:getISend()" />

    Thanks.


  • Abhishek Chadha

    Hi,

    Can you share the code that you have developed as I wanted to implement paging in the CQWP

    Thanks

    al



  • Trainwreck

    Paging is not supported by the web part out of box. You could implement it using some custom XSLT, that would take the full results of the web part and break it up into pages, with next/previous links calling javascript functions that "page" the results by showing/hiding subsets of the results. Note that this would require that your web part loads all the results you want to page, so keep performance in mind if you consider this solution.
  • Paging in Query Content Web Part