create new tag
, view all tags


I cannot find simple instructions (and I need simple after the day I've had) on how to use the JSCalendar popup control in my topic. Can someone please give me some instructions on how to do this?


TWiki version: TWikiRelease04x01x01
TWiki plugins: JSCalendarContrib
Server OS: Linux
Web server: Apache
Perl version: ?
Client OS: MS WinXP
Web Browser: FireFox (latest)
Categories: Plugins

-- BrianBeaudet - 25 Apr 2007


ALERT! 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.

for simple instructions, I'd suggest adding a more specific requirement - or do you just want the jscalendar to popup, but not do anything?

-- SvenDowideit - 28 Apr 2007

I'd like to customize the current "Create a topic" form with a date picker javascript popup calendar control. So, the user can then click the "trigger" button to popup the calendar and then allow them to pick a date and it will populate a text field with that date. I was under the assumption the JSCalendar was a plugin, but now I see it's not. Any suggestions?

-- BrianBeaudet - 30 Apr 2007

You can't do that. You should be able to write something pretty trivial though; maybe use the DateFieldPlugin as your starting point.

-- CrawfordCurrie - 02 May 2007

Hmmm, trivial to some may not be trivial to others. wink Thanks anyway.

-- BrianBeaudet - 03 May 2007

http://wiki.fini.net/bin/view/Sandbox/AddEvent uses a CommentPlugin template to pop up the JSCalendar when clicking on a date field. Maybe this can be borrowed somehow. Have a look at the discussions about the tamplate at CalendarPluginDev.

-- FranzJosefSilli - 03 May 2007


(View raw text)

-- PeterThoeny - 08 May 2007

Thanks Peter! I was missing a few things and your example nailed it for me.

-- BrianBeaudet - 08 May 2007

I must really have confused my installation of TWiki - this worked in forms etc, but I "upgraded" to the latest jscontrib & it didn't work at all. I rolled back to the version with TWiki 4.1.2 & all seemed well. I could even perform the example on this page.

I've altered a lot of the past few days, but didn't think I'd gone over this again, however...

In forms & edittable Date files work fine. But if I use the example on this page (which I thought I had working) the calendar pops up, I can select a date, but it doesn't update the field (nor does the calendar go away until I click elsewhere) and the calendar will not change to another month.

I'musing this in an incident/error/issues rporting system, it seemed to work OK, but I've been fiddling with other things in the last few days, because I'm building an ISO 9000 quality control system in TWiki.

I have done something wrong, but I've checked the code is line for line correct so what have I done/missed out?

-- ChrisHogan - 05 Dec 2007

I'll refine my comment - the Javascipt jump to year & to tofay don't work, but the jump to month ones do - except it won't go beynd Dec 2007 - have I corrupted some date checker? But then why does JScontrib work on forms & in edittable settings? And why did it work the other day?!

-- ChrisHogan - 05 Dec 2007

Arrrgh! If I leave out the scripting indicated in this topic, it works! That is I use the button definitions, but let the Jscalendar be defined by whatever exists & it's all OK.


-- ChrisHogan - 05 Dec 2007

Change status to:
Edit | Attach | Watch | Print version | History: r9 < r8 < r7 < r6 < r5 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r9 - 2007-12-05 - ChrisHogan
  • 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-2018 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.