Tags:
create new tag
, view all tags

SID-00758: RenderFormPlugin breaks ActionTrackerPlugin

Status: Unanswered Unanswered TWiki version: 4.3.1 Perl version: 5.8.2
Category: CategoryPlugins Server OS: AIX 5.3 Last update: 1 year ago

Hello. I love RenderFormPlugin. But now that I have installed it, it breaks the JSCalendar on the edit pane of Action Tracker. For example, when you hit the "edit" button to modify an entry, you get a edit page which is largely controlled by template actionform.tmpl. On this page there is a form field using the JSCalendar, and you can select it, and get the calendar, but when you select a date, it does not populate the field. I believe the problem arises because an extra reference to the JSCalendar css gets appended at the bottom of the page, confusing the browser. It appears to be tacked on after where the content from actionform.tmpl does its work, so I'm not sure how it's getting populated. Any help?

-- AaronLWalker - 2010-02-18

Discussion and Answer

Here is the line which gets added which I believe is causing the problem:

<style type='text/css' media='all'>@import url('/twiki/pub/TWiki/JSCalendarContrib/calendar-blue.css');.calendar {z-index:2000;}</style><script type='text/javascript' src='/twiki/pub/TWiki/JSCalendarContrib/calendar.js'></script><script type='text/javascript' src='/twiki/pub/TWiki/JSCalendarContrib/lang/calendar-en.js'></script><script type='text/javascript' src='/twiki/pub/TWiki/JSCalendarContrib/calendar-setup.js'></script><script type='text/javascript' src='/twiki/pub/TWiki/JSCalendarContrib/twiki.js'></script>

-- AaronLWalker - 2010-02-18

ActionTrackerPlugin version says 16787 (12 Dec 2008)

RenderFormPlugin version says V1.003 (13 Feb 2009)

-- AaronLWalker - 2010-02-18

I ended up fixing this problem by commenting out any calls to the addHEAD subroutine in JSCalendarContrib, which, of course, is not the best way to do this smile

This included:

lib/TWiki/Form/Date.pm
lib/TWiki/Contrib/JSCalendarContrib.pm
lib/TWiki/Plugins/RenderFormPlugin.pm
lib/TWiki/Plugins/ActionTrackerPlugin.pm
lib/TWiki/Plugins/FormPlugin.pm
I'll try to look at the line in RenderFormPlugin which is causing me the problems. It is labeled as "workaround for date fields", so, yes, it doesn't play well with others.

-- AaronLWalker - 2010-02-18

Closing this question after more than 30 days of inactivity. Feel free to reopen if needed. Consider a subscription for support or engage 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 - 2010-04-05

Change status to:

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.
SupportForm
Status Unanswered
Title RenderFormPlugin breaks ActionTrackerPlugin
SupportCategory CategoryPlugins
TWiki version 4.3.1
Server OS AIX 5.3
Web server IBM HTTP 7
Perl version 5.8.2
Topic revision: r3 - 2010-04-05 - PeterThoeny
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by PerlIdeas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.