You are here: Foswiki>Tasks Web>Item8616 (25 Feb 2010, PaulHarvey)Edit Attach

Item8616: ADDTOHEAD and JQREQUIRE interactions.

pencil
Priority: Urgent
Current State: No Action Required
Released In:
Target Release: n/a
Applies To: Extension
Component: ZonePlugin
Branches:
Reported By: PaulHarvey
Waiting For:
Last Change By: PaulHarvey
Had a problem where this did not work, nothing was added to the page (not even calendarapp.js), but now it's working again... closing no action.

%JQREQUIRE{"ui"}%
%JQREQUIRE{"fullcalendar"}%
%ADDTOHEAD{"CalendarApp" text="<script type='text/javascript' src='%ATTACHURLPATH%/calendarapp.js'></script>"}% 

I eventually landed at this combination:
%JQREQUIRE{"ui"}%
%JQREQUIRE{"fullcalendar"}%
%ADDTOHEAD{"CalendarApp" requires="JQUERYPLUGIN::UI" text="<script type='text/javascript' src='%ATTACHURLPATH%/calendarapp.js'></script>"}% 

Also of note, a simple %JQREQUIRE{"fullcalendar"}% by itself did not add the js for ui to the page, so I had to require both ui and full-calendar separately

Sorry for the vague bug report, if we are unable to reproduce, I will find time later to do this again and document exactly what I tried

-- PaulHarvey - 25 Feb 2010

 

ItemTemplate edit

Summary ADDTOHEAD and JQREQUIRE interactions.
ReportedBy PaulHarvey
Codebase
SVN Range
AppliesTo Extension
Component ZonePlugin
Priority Urgent
CurrentState No Action Required
WaitingFor
Checkins
TargetRelease n/a
ReleasedIn
Topic revision: r1 - 25 Feb 2010, PaulHarvey
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy