Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

All other Modules /

Discuss all other Modules here.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Event Calendar: Using the jQuery UI DatePicker


Go to End


3 Posts   8993 Views

Avatar
UncleCheese

Forum Moderator, 4102 Posts

27 August 2009 at 7:59am

Have you tried LiveCalendarWidget?

Avatar
UncleCheese

Forum Moderator, 4102 Posts

27 August 2009 at 8:33am

Well, the idea for LiveCalendarWidget was to deliver a calendar tool that was aware of your events. It does that by making an ajax call to the calendar page every time the month advances, so you always have information about which days have events. Plus, it breaks the widget out of client side generation and into the MVC pattern, so it's easy to customize and rebrand. May not work for you, but something else to look into.

Avatar
UncleCheese

Forum Moderator, 4102 Posts

27 August 2009 at 9:12am

Yeah, my experience is that it's pretty snappy, but I am on a fairly fast connection, too.

Also, when you feed a static array to a calendar, you have to somehow provide limits on either end of the date range, but making a call to the database, you're always sure to get that set of months.

I also wonder if a several asynchronous queries for one month are more better performing than one huge one up front?