JQuery DateBox assign dates to calendar

error77
error77 used Ask the Experts™
on
Hi all,

I am using JQuery Mobile Databox plugin.

http://dev.jtsage.com/jQM-DateBox/

Does anyone know or have an idea on how I can assign multiple dates to the calendar?

Right now it only does the set or current date ... I need to assign more dates to it.

Hope someone can help

Thanks

Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Can you explain what do you mean by >>> assign multiple dates to the calendar?

Author

Commented:
Sure, I need the Calendar to be able to read multiple dates and highlight them.

By default it only does one, the current date or assigned default date.

I need it to read more than one date and highlight them in the calendar.

Make sense?

Thanks
I'm not giving much programming details as I do not know the real usage / details, but, try changing code like below:

Find
 
if ( ( today === highlightDay || today === presetDay ) ) { thisTheme = o.pickPageHighButtonTheme; }

Open in new window


and change it to like
 
if ( ( today === highlightDay || today === presetDay || today === 21 || today === 30 ) ) { thisTheme = o.pickPageHighButtonTheme; }

Open in new window


Then it appears as below:

You need to achieve the programmatic approach to get the condition like above depending on your inputs and usage.

Hope this gives an idea. Image of Calendar

Author

Commented:
Fantastic! Thanks very much. Next move is to have it read it from an external source ... eg: JSON file, xml or something like that ... but I'm opening another question for that. Thanks very much for this.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial