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

YUI Calendar - get current page

Expand Messages
  • tacofleur
    Hello all, does anyone know how to get the current page when paging through the calendar group? I need to repopulate the calendar data when the event
    Message 1 of 3 , Jun 2, 2008
      Hello all,

      does anyone know how to get the current page when paging through the
      calendar group?

      I need to repopulate the calendar data when the event "changePageEvent"
      fires, the data is based upon which calendar the client is looking at.

      Thanks in advance.

      [code]
      YAHOO.ce.calendar.cal1.changePageEvent.subscribe( myPageChangeHandler,
      YAHOO.ce.calendar.cal1, true );

      function mySelectHandler( type, args, obj ) {
      //get the current page here
      }
      [code]
    • Dav Glass
      tacofleur -- The pagedate config option should give you that info: http://developer.yahoo.com/yui/docs/YAHOO.widget.Calendar.html#config_pagedate Does that
      Message 2 of 3 , Jun 2, 2008
        tacofleur --

        The pagedate config option should give you that info:
        http://developer.yahoo.com/yui/docs/YAHOO.widget.Calendar.html#config_pagedate


        Does that help?
        Dav

        Dav Glass
        dav.glass@...
        blog.davglass.com




        + Windows: n. - The most successful computer virus, ever. +
        + A computer without a Microsoft operating system is like a dog
        without bricks tied to its head +
        + A Microsoft Certified Systems Engineer is to computing what a
        McDonalds Certified Food Specialist is to fine cuisine +


        ----- Original Message ----
        From: tacofleur <taco.fleur@...>
        To: ydn-javascript@yahoogroups.com
        Sent: Monday, June 2, 2008 10:19:02 PM
        Subject: [ydn-javascript] YUI Calendar - get current page

        Hello all,

        does anyone know how to get the current page when paging through the
        calendar group?

        I need to repopulate the calendar data when the event "changePageEvent"
        fires, the data is based upon which calendar the client is looking at.

        Thanks in advance.

        [code]
        YAHOO.ce.calendar.cal1.changePageEvent.subscribe( myPageChangeHandler,
        YAHOO.ce.calendar.cal1, true );

        function mySelectHandler( type, args, obj ) {
        //get the current page here
        }
        [code]


        ------------------------------------

        Yahoo! Groups Links
      • tacofleur
        Thanks that helps. ... http://developer.yahoo.com/yui/docs/YAHOO.widget.Calendar.html#config_ pagedate ... the ... event changePageEvent ... at. ...
        Message 3 of 3 , Jun 2, 2008
          Thanks that helps.

          --- In ydn-javascript@yahoogroups.com, Dav Glass <dav.glass@...>
          wrote:
          >
          > tacofleur --
          >
          > The pagedate config option should give you that info:
          >
          http://developer.yahoo.com/yui/docs/YAHOO.widget.Calendar.html#config_
          pagedate
          >
          >
          > Does that help?
          > Dav
          >
          > Dav Glass
          > dav.glass@...
          > blog.davglass.com
          >
          >
          >
          >
          > + Windows: n. - The most successful computer virus, ever. +
          > + A computer without a Microsoft operating system is like a dog
          > without bricks tied to its head +
          > + A Microsoft Certified Systems Engineer is to computing what a
          > McDonalds Certified Food Specialist is to fine cuisine +
          >
          >
          > ----- Original Message ----
          > From: tacofleur <taco.fleur@...>
          > To: ydn-javascript@yahoogroups.com
          > Sent: Monday, June 2, 2008 10:19:02 PM
          > Subject: [ydn-javascript] YUI Calendar - get current page
          >
          > Hello all,
          >
          > does anyone know how to get the current page when paging through
          the
          > calendar group?
          >
          > I need to repopulate the calendar data when the
          event "changePageEvent"
          > fires, the data is based upon which calendar the client is looking
          at.
          >
          > Thanks in advance.
          >
          > [code]
          > YAHOO.ce.calendar.cal1.changePageEvent.subscribe(
          myPageChangeHandler,
          > YAHOO.ce.calendar.cal1, true );
          >
          > function mySelectHandler( type, args, obj ) {
          > //get the current page here
          > }
          > [code]
          >
          >
          > ------------------------------------
          >
          > Yahoo! Groups Links
          >
        Your message has been successfully submitted and would be delivered to recipients shortly.