I just noticed that though all this appears in the response, when I browse the code in the HTML tab of firebug, the script tags don't appear for the calendars that are part of the ajax-replaced part of the code.
The weird thing is that none of the calendars work after the replace, not even those that are "static" on the page (they work perfectly until the new calendars appear)
When I click on a date on any of the calendars after the replace, I get the following javascript errors :
too much recursion
setFullYear()()calendar.js (ligne 1797)
.....
(no script)()(eliding...1 frames) (ligne 0)
setFullYear()()calendar.js (ligne 1797)
.....
(?)()index.ph...e&id=1019 (ligne 1796)
(?)()index.ph...e&id=1019 (ligne 1721)
(?)()index.ph...e&id=1019 (ligne 597)
(?)()
d.__msh_oldSetFullYear(y);n
I’ve tried some combinations and found out that the problem only happens when there is some given date passed to the inputField. Also, if I click over the “Today” link in the calendar, it rebuilds the matrix of days in the right way…
The weirdest part is that here in Brazil, our Daylight Saving Time has begun coincidentally in October, 18h, which is exactly one day after the day which appears twice in the Calendar.
I’ve just noticed that when I drag the calendar it moves up and down ok, but when moving left and right the righthand side of the calender is stays fixed against the right handside of the browser window.
I’m using the Epiphany browser that is powered by Gecko 1.8 (if that’s any help).
I created a very basic db w/ a tbl_general_info that has a date field called test_date. I used gii to create the Model and CRUD operations. Then I added the calendar extension to my _view.php file. Here’s the file:
Thanks Spyros. Can’t believe I missed that. I was also working w/ the wrong file. I should have been modifying the _form.php file that’s used for modifying values. The _view.php seems to be for display purposes only i.e. listing the content of the model.
Awesome plugin. For completeness, all I had to do was this:
Thanks for this great plugin. I have one problem, to which i have tried countless times and failed. I want the years in the drop down list not to skip by a year, (e.g 2001,2002,2003…instead of 2001,2003,2005…). I have read about $_step but couldn’t get it done.