Welcome Guest, Not a member yet? Register   Sign In
Calendar Class in sidebar with Ajax
#1

[eluser]yannyannyann[/eluser]
Hello,

I have implemented the codeigniter calendar class,
but I would like to use is with jQuery ajax in my sidebar.

has anyone experience with this ?
Or is there another class out there that already does this ?

.. Because I'd like to avoid refreshing the page each time I click NEXT / PREVIOUS Month buttons..


Thanks in advance !
#2

[eluser]yannyannyann[/eluser]
Hello again,

I have been working on another project in the meantime, but now i am back to this calendar thingy, and would like to know if somebody has an idea about this ?

thanks Smile
#3

[eluser]Dan King[/eluser]
You'll need to use a calendar template. See "Creating a Calendar Template" on the calendar class user guide. Modify the {heading_previous_cell} line to be something like the following:

Code:
{heading_previous_cell}<th><a href="#" onClick="new Ajax.Updater('cal_box', '{previous_url}'); return false;"><<</a></th>{/heading_previous_cell}

That will load the calendar into the 'cal_box' div, without refreshing the page. This example is using Prototype's AJAX, and it's probably something similar for jQuery.

Now the real question is how to get multiple events, or links to show up under a single day. I'll have to keep working on that one.




Theme © iAndrew 2016 - Forum software by © MyBB