Tags:
create new tag
view all tags

Question

I'm using the date field in a form. I have the little calendar icon beside the uneditable field in the form. However, when I click the calendar icon nothing happens. There is a message "_dynarch_popupCalendar is not defined". source file is twiki/pub/TWiki/TWikiJavascripts/twiki.js .

sample form below.

Name Type Size Values Tooltip Message
CallDate date 11 // Date of call.
ContactPerson text 60   Who we should call back?
CallBackNumber text 25   Call back phone number.

Environment

TWiki version: TWikiRelease04x00x04
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: FC4
Web server: Apache2.0.55
Perl version: 5.8.6
Client OS: XPSP2
Web Browser: Firefox 1.5
Categories: Javascript

-- JoeDeal - 09 Aug 2006

Answer

I should add that the popup calendar works fine when integrated with %EDITTABLE...%

-- JoeDeal - 09 Aug 2006

As documented in TWikiForms, TWiki does not handle date type by default. Did you install the DateFieldPlugin?

-- PeterThoeny - 10 Aug 2006

Yes, Enabled in configure. I also ran the DateFieldPlugin_installer. Checked version of JSCalendarContrib>=0.96. Edit the tmpl.... hmmm. I don't remember that part.... I'm using the Pattern template. I've opened the edit.pattern.tmpl and there is no %TMPL:DEF{"script"}% anywhere in the file.

-- JoeDeal - 10 Aug 2006

Hmm, not sure. May be the Plugin author CrawfordCurrie can shed light on this.

-- PeterThoeny - 10 Aug 2006

I put the %TMPL:DEF{"script"}% in there with the %TEMPL:END% and it didn't make a difference. I should note it didn't blowup either.

-- JoeDeal - 11 Aug 2006

I just tried the plugin on FF (Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.6) Gecko/20060728 Firefox/1.5.0.6), standard TWiki4 installation, standard Pattern skin) and it worked perfectly, no console messages. All I did was to install DateFieldPlugin, enable it in configure, and paste in your example form.

Are you sure you haven't disabled javascript in the browser? Or perhaps you are using a skin that is interfering? Or perhaps some part of the javascript for the mishoo calendar is unreadable by the webserver user?

-- CrawfordCurrie - 12 Aug 2006

Javascript is checked. I'm using the standard Pattern skin. It is odd that it works working through %EDITTABLE%. Ownership and Permissions for the JSCalendar files are nobody/apache 755. Still complains about the _dynarch_popupcalendar not defined in twiki/pub/TWiki/TWikiJavascripts/twiki.js

-- JoeDeal - 14 Aug 2006

Sorry, you are going to have to ask ArthurClemens. That twiki/pub/TWiki/TWikiJavascripts/twiki.js is nothing to do with the calendar; I'm guessing there is some nasty interaction.

-- CrawfordCurrie - 16 Aug 2006

I found no problems when installing from SVN (TWiki 4). I find it strange that the js error lists twiki/pub/TWiki/TWikiJavascripts/twiki.js. I would think it is in /pub/TWiki/JSCalendarContrib/twiki.js.

-- ArthurClemens - 22 Aug 2006

yeah, me too. However, that's what it lists. Arthur, in your mail to Joe you said:

It could be a bug in the installer. Most developers install from the command line, so such a bug may go unnoticed for some time

What installer? Do you mean the package, built by BuildContrib? If so, I doubt it, since pseudo-install.pl is driven from the same file (MANIFEST) as BuildContrib....

-- CrawfordCurrie - 23 Aug 2006

Would it be beneficial if I post the source code of the twikiPage that is being displayed?

-- JoeDeal - 23 Aug 2006

Yes, why not.

-- ArthurClemens - 23 Aug 2006

I've attached a file with the source code generated for one of the pages.

-- JoeDeal - 23 Aug 2006

I guess the html source code didn't help?

-- JoeDeal - 28 Aug 2006

I forgot about this. But the html says what I was thinking: JSCalendarContrib is not installed or called.

-- ArthurClemens - 28 Aug 2006

All the files from JSCalendarContrib are spread all over creation. I even ran the JSCalendarContrib_installer.pl? What else do I need to do?

-- JoeDeal - 28 Aug 2006

I've come across the same problem, but after running the installer script the pop-up works for IE, but not Opera. As Joe says, the pop-works for EDITTABLE in both IE and Opera. I don't know if that's a clue to anybody, but I hope so.

-- JulianLevens - 22 Sep 2006

My popup still doesn't work outside the EDitTabLE. It is still acting like it is not installed. I can't tell you how many times I've installed this. Weirder still, is I've installed it on another server and it is working the same way.

-- JoeDeal - 10 Oct 2006

I don;t know what else to suggest. Try visiting the Mishoo release pages and make sure it works there. View the source of the TWiki page and look for the text 'showCalendar' (if it's not there it points to a TWiki problem.

Three things; go back and check that the DateFieldPlugin really is enabled, that %FAILEDPLUGINS% shows no errors, and that your form really does contain a field of type date.

-- CrawfordCurrie - 11 Oct 2006

It appears to be something different than server/ TWiki related. We are trying to use a Webapp that has java popups and there is no one in the office that can use it because there are errors generated in Java. The popups are not being blocked by the browsers. We are searching for the culprit.

-- JoeDeal - 18 Oct 2006

Change status to:
Edit | Attach | Watch | Print version | History: r22 < r21 < r20 < r19 < r18 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r22 - 2006-11-27 - ArthurClemens
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.