Question
I can't seem to get the calendar to popup for the date fields in
EditTablePlugin. I've updated to the 4.0.4 ver but still get a script error from the browsers complaining of 'Object Expected.' Line 208. (?)
Environment
--
JoeDeal - 11 Jul 2006
Answer
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.
I should note that I did follow the instructions regarding the
EditTableAndDatePopup question.
--
JoeDeal - 11 Jul 2006
Check this:
- Verify that your upgrade is OK. Especially the JSCalendarContrib that provides the date pick functionality (included in TWiki 4 package)
- Your browser might cache the JS Calendar JavaScript files. Try to clear the browser cache, or try with another browser.
--
PeterThoeny - 12 Jul 2006
Peter, It appears to have current JSCalendar files (5/19/06) and clearing the cache didn't seem to help in IE - FF or Maxthon. Still get the same error in FF regarding
ShowCalendar not defined, however, it is refering to line 1. IE error is the same as above.
--
JoeDeal - 12 Jul 2006
Double check permissions, logs, etc.... and everything is supposedly right. I should note that it is just the "DATE" field in any table not just the EDITTABLE. This little feature is quite nice when working and makes a lot of the things that we want to do very convenient, however, this is a tad frustrating. I don't have a clue why this doesn't work anymore. Should I revert back to ver 4.01?
--
JoeDeal - 14 Jul 2006
In FF, type
javascript: to open up the JavaScript console. See what kind of errors you get there.
--
PeterThoeny - 15 Jul 2006
"Showcalendar not defined" is the error found in FF Javascript console.
--
JoeDeal - 15 Jul 2006
Look at the source of a topic when you edit a table with a date field. The source html should have this line:
<script type="text/javascript" src="/path/to/pub/TWiki/JSCalendarContrib/twiki.js"></script>
The
twiki.js file contains the
showCalendar function. This file is part of the pre-installed
JSCalendarContrib.
--
PeterThoeny - 17 Jul 2006
Page Source shows no entry for the /pub/TWiki/JSCalendarContrib/twiki.js.
However, there is a pub/TWiki/JSCalendarContrib folder. It should be noted that that folder was the only folder not owned & operated by nobody/apache. So, how do I fix this? I've fixed the ownership issue, but how do I get the reference in the required pages and future pages? Is there an install script?
JSCalendarContrib_installer.pl?
--
JoeDeal - 17 Jul 2006
Running the
JSCalendarContrib_installer.pl didn't change anything. New date fields cannot be filled with a date, either manually or by popup calendar. So, what do I do to get that line of code into the pages?
--
JoeDeal - 21 Jul 2006
If you are using this with
PatternSkin then please install latest version of this in its entirely and report back. Your upgrade should have taken care of this, but it could sound a bit like something is still missing?
Do you get the calendar popup alright when editing forms with a date field normally?
If you are able, please paste the exact syntax you are using for your table. That will allow us to try to reproduce your finding.
I should note I have no problems using the calendar popup in an example like this:
%EDITTABLE{ format="| label | text, 40 |" }%
| *Key* | *Value* |
| Name: | John Smith |
| Gender: | F %EDITCELL{select, 1, , F, M}% |
| DOB: | 2006/05/19 %EDITCELL{date, 10}% |
| City: | New York |
On another note I think a worse problem currently with this plugin is that it is not updated to work with the updated locking mechanism in Dakar. It will therefore throw "already editing" oops'es on second and following edits (as reported on its Dev topic).
--
SteffenPoulsen - 21 Jul 2006
I am using the
PatternSkin. I've downloaded the latest version (june29 from above noted link). Expanded it and ran the
PatternSkin_installer.pl as root, which I then had to correct the owners and permissions.... then I went through the
SettingFileAccessRightsLinuxUnix to set everything at an operation standpoint and nothing worked. I opened everything up (777) and I have access again but nothing is visible when I try to edit a page. Clicking edit I have a blank page with no area for editing and an expandable window for 'show formatting help'. I'll try again and post another message if I get something different.
--
JoeDeal - 21 Jul 2006
To answer a question I missed.... No calendar popup ever, even in the given sample. I guess it isn't just an
EditTable problem...
--
JoeDeal - 21 Jul 2006
OK, I've gone through and reinstalled everything under the sun. I've installed the
JSCalendarContrib and noticed there were still no calendars next to date fields... I realized there was no
DateFieldPlugin. Added that and ran installation.pl. Now the topics have the calendar off to the right but there is no popup. In the
JavaConsole I received the same error "showCalendar is not defined." Any idea what is going on?
--
JoeDeal - 27 Jul 2006
I still would like to see the exact syntax you are using for your table, to pursue a eventual problem with that.
Still the exact same problem on IE and FF?
--
SteffenPoulsen - 27 Jul 2006
Steffen - Thanks for your persistence.... I've tried your code above (John Smith) on the new server and it works (It still doesn't work on the other twiki installation. I'll dismantle that one.)! However, my forms are not able to enact the calendar popup. AH! Forms. Is that the issue? Do I have to make the form an EDITTABLE? instead of identifying the field as a date? I don't remember having to do that before? If that is so, the name of this issue is wrong. It should be the
DateFieldCalendarPopupNotWorking. The code in the form is basic stuff |Day of Event | date | 0 | 2006// | Day of event|
--
JoeDeal - 28 Jul 2006
It seems to be associated with the forms. Attached forms to topics don't function well.
-- Main.joe - 01 Aug 2006
--
JoeDeal - 01 Aug 2006
So, does this mean that we can't run JSCalendar from a form via the
DateField Plugin? The calendar pops up from EDITTABLE but it is a bit cumbersome - an added step to get to the point of editing the field. I thought I had this working in ver. 4.01, however, I may have been mistaken but it sure seemed to work nicer before. Should I reinstall the 4.01 version to see if it works then?
--
JoeDeal - 02 Aug 2006
Sorry, I am running out of ideas and this is quite an old question, closing it.
--
PeterThoeny - 01 Oct 2006