The dropdown calendar using JSCalendar Contrib does not work if it is used along with the EditRowPlugin, as shown below:
Part 1
Click on the calendar icon and select a date. This works
Warning: Can't find topic TWiki06x01.JSCalendarContribInline
Part 2
Edit the table, click on the calendar icon and select a date. This does not work
As you can see, the calendar in EDITTABLE does not work. In my installation on Windows, it throws an error "Stack overflow at line:1797" when I select a date. In my installation, I have enabled EditRowPlugin
Part 1 and Part 2 work independently if used in different pages.
Any solutions ?
-- ChengappaCB - 05 Mar 2009
Discussion and Answer
Not sure. With above example I get this:
Error: too much recursion
Source File: http://twiki.org/p/pub/TWiki04x02/JSCalendarContrib/calendar.js
Line: 1796
-- PeterThoeny - 05 Mar 2009
I had this problem when I had a calendar widget in a UserComments template. An HTML trace showed that /JSCalendarContrib/calendar.js was being loaded twice. By commenting out the redundant load, the problem went away.
If you search the HTML source of this page after using the edit table button, you will find two instances of that here too. But I'm not sure how to comment out one of them in this example though, since the script call hasn't been manually added.
-- SeanCMorgan - 2009-04-16
Closing this question after more than 30 days of inactivity. Feel free to reopen if needed. Consider engaging one of the TWiki consultants if you need timely help. We invite you to get involved with the community, it is more likely you get community support if you support the open source project!
-- PeterThoeny - 2009-06-02
OK.
-- ChengappaCB - 2009-06-04
JSCalendarContribInline adds calendar.js, but it's also done elsewhere. I just moved the STARTINCLUDE & it seems to be working again
-- ChrisHogan - 2009-09-12
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.