You are here: Foswiki>Tasks Web>Item10235 (12 Jun 2018, MichaelDaum)Edit Attach

Item10235: create new jquerytextboxlist plugin

pencil
Priority: Enhancement
Current State: No Action Required
Released In: n/a
Target Release: patch
Applies To: Extension
Component: JQueryPlugin
Branches:
Reported By: TemiVarghese
Waiting For:
Last Change By: MichaelDaum
This plugin enhances the capabilities of jqtextboxlist2. -- TemiVarghese - 10 Jan 2011

There's already a textboxlist module part of the JQueryPlugin. I which sense would you like to extend it? Maybe it makes more sense to work on the same code instead of creating another plugin?

-- MichaelDaum - 10 Jan 2011

I like to add capabilities to sort the tags and to remember the selections of a user. I have already modified the code you worked on. Please find the attached draft documentation and code. -- TemiVarghese - 10 Jan 2011

Cool. Will look into it. I'd really like to fold it into the standard textboxlist widget. We need to make sure users are not overwhelmed by alternatives.

-- MichaelDaum - 11 Jan 2011

Modified your textboxlist code to suite my requirements. Please find the file 10235.txt containing "git diff" output. -- TemiVarghese - 12 Jan 2011

Excellent. What about the additional UI files? These are newer than the jquery UI files coming with JQueryPlugin itself. Do you really need the newer versions?

-- MichaelDaum - 12 Jan 2011

I do not think it uses any of the new features. You can ignore them. -- TemiVarghese - 13 Jan 2011

That was my first impression as well. I will try to reuse the js files already part of the plugin as far as possible.

Nother two points to look at is the use of foswiki.Prefs as well as getting/setting cookies. There are some js modules in there that might be just fine to do the job, so we can slim down the general footprint a bit. smile

-- MichaelDaum - 13 Jan 2011

Yes.. I modified the cookie setting in Jquery plugin. I am afraid you have an older version of textboxlist2plugin. please find the attached jquery plugin files.

Patch: http://translate.foswiki.org/pub/Tasks/Item10235/10235.txt

-- TemiVarghese - 13 Jan 2011

I have made some modifications and improved the documentation. Please find the patch of the latest version.

-- TemiVarghese - 08 Feb 2011

Hi Temi. I am still having problems with this patch. Can you modify it to make clear what the actual minimal change set is. Can you rework the patch not to drag in individual jquery-ui files. Instead add a dependency to all of jquery-ui. Otherwise we end up with multiple versions of jquery.ui.[mouse,sortable,widget] that are (a) loaded individually via the textboxlist widget and (b) loaded as part of some other component requiring jquery-ui.

Do you really require JavascriptFiles/foswikiPref? I'd prefer to use jquery.cookie.

You extended the meaning of the doSort from boolean to one of asc, desc, custom or false. That I understand. Now comes two other parameters sortable and sortableID. The latter doesn't seem to be documented. Reading the js code it might be required to test if two sortable textboxlist widgets on the same page work out, i.e. without having an explicit sortableID. The default value for it might require some random suffix to prevent an ID clash.

As I think about it: isn't doSort=custom more or less enabling client side sorting already? It seems as if the extra sortable parameter is kind of redundant?

-- MichaelDaum - 26 May 2011

No more feedback. Closing this initiative. Please reopen if you like to continue.

-- MichaelDaum - 12 Jun 2018
 

ItemTemplate edit

Summary create new jquerytextboxlist plugin
ReportedBy TemiVarghese
Codebase 1.1.2, 1.1.1, 1.1.0, 1.1.0 beta1, trunk
SVN Range
AppliesTo Extension
Component JQueryPlugin
Priority Enhancement
CurrentState No Action Required
WaitingFor
Checkins
TargetRelease patch
ReleasedIn n/a
CheckinsOnBranches
trunkCheckins
masterCheckins
ItemBranchCheckins
Release02x01Checkins
Release02x00Checkins
Release01x01Checkins
I Attachment Action Size Date Who Comment
10235.txttxt 10235.txt manage 13 K 12 Jan 2011 - 01:06 TemiVarghese git diff output
Item10235.diffdiff Item10235.diff manage 20 K 08 Feb 2011 - 03:41 TemiVarghese patch added on 8 feb, 2011
Topic revision: r15 - 12 Jun 2018, 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