Loading ...
Sorry, an error occurred while loading the content.

How to get currentPageReport and set separately from pageLinks location

Expand Messages
  • n_lukhana
    I working with yui datatable and try to config it to meet my need this is my html code:
    Message 1 of 4 , Sep 28, 2008
    • 0 Attachment
      I working with yui datatable and try to config it to meet my need
      this is my html code:
      <div id="page_location"></div>
      <div id="tbl1"></div>
      <div id="paging"></div>

      this is my configuration of the paginator:
      Ex.oConfigs = {
      paginator: new YAHOO.widget.Paginator({
      containers : ['paging'],
      pageLinks : 10,
      rowsPerPage: 5,
      previousPageLinkLabel : '<  Previous',

      nextPageLinkLabel : 'Next  >',

      template : '<p
      style="font-family:verdana;font-size:11px;font-weight: bold;">
      {CurrentPageReport}</p>' +
      '<p
      style="font-family:verdana;font-size:11px;">' +

      '{PreviousPageLink} ' +

      '{PageLinks}' +

      '{NextPageLink}' +

      '</p>'
      })
      };



      - On top of the datatable(the page_location in my code), I would like to
      show the currentPageReport like this : "Page 1 of 21 pages"
      and the bottom of the datatable(the paging in my code), I would like
      to show only pageLinks
      the problem is that I can't set the currentPageReport to
      the 'page_location' ,I would like to know how to get or set
      currentPageReport to my 'page_location' separately
      from the pageLinks
    • n_lukhana
      I try : YAHOO.util.Dom.get( page_location ).innerHTML = Ex.dataTable1.get ( paginator ).currentPage; but it doesn t work and show undefined .
      Message 2 of 4 , Sep 28, 2008
      • 0 Attachment
        I try :
        YAHOO.util.Dom.get("page_location").innerHTML = Ex.dataTable1.get
        ("paginator").currentPage;

        but it doesn't work and show "undefined".
      • Satyam
        Try: YAHOO.util.Dom.get( page_location ).innerHTML = Ex.dataTable1.get( paginator ).getCurrentPage(); Satyam
        Message 3 of 4 , Sep 29, 2008
        • 0 Attachment
          Try:

          YAHOO.util.Dom.get("page_location").innerHTML = Ex.dataTable1.get("paginator").getCurrentPage();

          Satyam


          n_lukhana wrote:
          > I try :
          > YAHOO.util.Dom.get("page_location").innerHTML = Ex.dataTable1.get
          > ("paginator").currentPage;
          >
          > but it doesn't work and show "undefined".
          >
          >
          > ------------------------------------
          >
          > Yahoo! Groups Links
          >
          >
          >
          > ------------------------------------------------------------------------
          >
          >
          > No virus found in this incoming message.
          > Checked by AVG - http://www.avg.com
          > Version: 8.0.169 / Virus Database: 270.7.5/1696 - Release Date: 28/09/2008 13:30
          >
          >
        • n_lukhana
          Thank you. ... ( paginator ).getCurrentPage(); ... 28/09/2008 13:30
          Message 4 of 4 , Sep 30, 2008
          • 0 Attachment
            Thank you.
            --- In ydn-javascript@yahoogroups.com, Satyam <satyam@...> wrote:
            >
            > Try:
            >
            > YAHOO.util.Dom.get("page_location").innerHTML = Ex.dataTable1.get
            ("paginator").getCurrentPage();
            >
            > Satyam
            >
            >
            > > Yahoo! Groups Links
            > >
            > >
            > >
            > > ------------------------------------------------------------------------
            > >
            > >
            > > No virus found in this incoming message.
            > > Checked by AVG - http://www.avg.com
            > > Version: 8.0.169 / Virus Database: 270.7.5/1696 - Release Date:
            28/09/2008 13:30
            > >
            > >
            >
          Your message has been successfully submitted and would be delivered to recipients shortly.