You are here: Foswiki>Tasks Web>Item1947 (20 Aug 2009, MichaelDaum)Edit Attach

Item1947: JQuery - SafeWikiPlugin compatibility

pencil
Priority: Normal
Current State: Closed
Released In:
Target Release: n/a
Applies To: Extension
Component: JQueryPlugin
Branches:
Reported By: PaulHarvey
Waiting For:
Last Change By: MichaelDaum
SafeWikiPlugin doesn't allow inline javascript at all, so I did two things to Tabpane:

  • Rather than generate a unique <script></script> fragment for each occurrence of %TABPANE%, moved that JS into jquery.tabpane.js.
  • Where before the parameters to .tabpane() were generated in the <script></script>, a unique <meta/> element is generated in its place (via addToHEAD()) to hold the parameters instead.

So far, it seems Tabpane is the only JQueryPlugin that needs this modification.

I'm still testing this patch (attached output of svn diff), but it seems to work.

Additionally: I'm working on %BUTTON% (complex on* event handlers) :-/

-- PaulHarvey - 20 Aug 2009

Fixed %BUTTON and %TOGGLE as well. Released as v2.03.

-- MichaelDaum - 20 Aug 2009

ItemTemplate edit

Summary JQuery - SafeWikiPlugin compatibility
ReportedBy PaulHarvey
Codebase trunk
SVN Range Foswiki-1.0.0, Thu, 08 Jan 2009, build 1878
AppliesTo Extension
Component JQueryPlugin
Priority Normal
CurrentState Closed
WaitingFor
Checkins distro:3b144654c4de distro:5ea6665dd14a
TargetRelease n/a
ReleasedIn
I Attachment Action Size Date Who Comment
jqueryplugin.tabpane.diffdiff jqueryplugin.tabpane.diff manage 3 K 20 Aug 2009 - 02:18 PaulHarvey  
Topic revision: r3 - 20 Aug 2009, MichaelDaum
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