» Forums
» DynarchMenu forum
» Support
» customizing parsing onOpen
customizing parsing onOpen
2008/07/25 01:43
Viewed 2124 times
Replies: 0/0

Hello,

In my application user's specify date rages in the following formats:
e.g. "-3:-1" defines a relative range of two months starting from 3 months ago until last month.
e.g. "11.03.08:15.03.08" defines an absolute range

and then using the comma as separator they can freely define any overlapping or non overlapping combination of those.

My problem is that I need parsing things like e.g. "-3:-1,11.03.08:15.03.08" and converting it into a set of fixed dates to initialize the jscalendar with. I have two problems:

1. I don't know how to hook an initialization function that will assign the initial dates displayed.
2. I have a custom Struts 2 date range converter that does exactly this parsing and I would be happy to reuse but it is a nice to have.

TIA,
regards,
Giovanni

Google