WordPress.org

Ready to get started?Download WordPress

Forums

Ajaxize
[resolved] Need help on how to make a calendar scroll (2 posts)

  1. GabrielJT
    Member
    Posted 3 years ago #

    Hello there!

    I've implemented an 'event calendar', works like a widget. I have the custom post type 'event', and the calendar is generated dynamically for the actual month detecting the posts which are events.
    You can see it at http://www.espacofluxo.com.br (recommend using firebug to see the generated code)

    Well, i want now to create two buttons ('<<' and '>>') so the user can scroll the months of the calendar.

    The function which generates the calendar has a parameter $interval, if its value == 0 then the actual month is displayed, if its value == 1, the calendar for the next month is displayed and so on..

    Since the plugin does not accept functions with parameters I've created a new function init_calendar

    function init_calendar() {
    if ($interval == null)
    $interval = 0;
    calendar($interval);
    }

    It worked, the div was generated by the plugin and I successfully implemented the refresh function in the faq of this plugin :)
    The calendar faded out, then faded in..

    Well, could you help me develop this calendar scroll functionality?
    I'm not very used to ajax and javascript :s

    Many thanks, and keep up the good work!

    http://wordpress.org/extend/plugins/ajaxize/

  2. yoav.aner
    Member
    Plugin Author

    Posted 3 years ago #

    Hi Gabriel,

    In order to scroll between different calendar months you simply have to pass in a parameter to indicate which month you'd like to view...

    Therefore, I'm not entirely sure my plugin is the best resource for your website to be honest. Primarily because ajaxize doesn't support passing parameters.

    Nice website by the way.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags