[Solved] Add links to jQuery-UI Datepicker using json

[Solved] Add links to jQuery-UI Datepicker using json

Hi.

I was wondering, has anybody tried to attach links to several (or all) dates?
For example, my need would be to load json data, parse the dates/links and attach them to current month.

What approach would you use?

My current solution could be:
* load json object (GET "month", "year") by current year/month (whitch vould be formatted as data[i].date, data[i].link)
* run through month dates and check, if link is needed, if yes – add link and remove dhtml "onclick" event from td

It seems like overkill to me, is there any other solution?

Thanks.