Calendar Scroll with Ajax
-
Hello there!
I have a function calendar($interval) {…}
If $interval == 0, the current month will be generated. If it’s value is 1, then the next month will be generated, if it’s -1, the previous month will be generated and so on..Well, i need to make two buttons which will scroll between months, a next button which will increment the interval value and a previous button which will decrement the interval value.
This must be done via ajax, the function calendar is called inside a div with id=”calendar”
I need help doing this… I followed this guide (http://www.garyc40.com/2010/03/5-tips-for-using-ajax-in-wordpress/#comment-572) to implement the ajax calls correctly, but i’m a bit lost on how to update the div with the calendar using the new value for the interval.
You can see the calendar working (without the scroll functionality of course) at http://espacofluxo.com.br/
Many thanks!
The topic ‘Calendar Scroll with Ajax’ is closed to new replies.