Hi, I'm having trouble declaring calendars in an ajax-replaced view inside of a page that already contains calendars. The calendars appear correctly but they fail to set their values in the specified fields. Before the ajax replacement, everything is fine. Can it be an ID issue ? If so, is there a way to set it manually ? Thanks for an awesome widget !
Can you see in the generated source after the ajax replace if 2 or more calendars have the same ID. Anyway I'll see if there's a way to set the calendars ids manually
I can see the source through firebug before and after the ajax replace but no ID for any of the calendars. Tell me if there is anything helpful that I can provide.
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: