Delta Controls

JQueryPlugin

Copyright Information

No part of this document may be reproduced, transmitted, transcribed, stored in a retrieval system or translated into any language (natural or computer), in any form or by any means, without the prior written permission of Delta Controls Inc.

Limited permission is granted to reproduce documents released in Adobe Portable Document Format (PDF) electronic format in paper format. Documents released in PDF electronic format may be printed by end users for their own use using a printer such as an inkjet or laser device. Authorized distributors of Delta Controls Inc. products (Delta Partners) may print PDF documents for their own internal use or for use by their customers. Authorized Delta Partners may produce copies of released PDF documents with the prior written permission of Delta Controls Inc.

Information in this document is subject to change without notice and does not represent a commitment to past versions of this document on the part of Delta Controls Inc.

Copyright © 2021 Delta Controls Inc. All rights reserved Table of Contents

JQueryPlugin...... 1 of 19 Description...... 1 of 19 Adding new plugins...... 1 of 19 Writing your own Javascript...... 1 of 19 jQuery References and tutorials...... 1 of 19 Macros...... 2 of 19 BUTTON{"text" ...} -- renders a nice button...... 2 of 19 TABPANE{...} -- tabpane widget...... 3 of 19 ENDTABPANE -- ending for tabpane widget...... 3 of 19 TAB{"text" ...} -- tab inside a tabpane widget...... 3 of 19 ENDTAB -- ending marker for a tab of a tabpane...... 4 of 19 JQICON{"name" ...} -- render an image...... 4 of 19 JQICONPATH{"name"} -- render the urlpath to an image...... 5 of 19 JQPLUGINS{"plugins" ... } -- display a summary of available plugins...... 5 of 19 JQREQUIRE{"plugin, plugin, ... "} -- enable a plugin on the current page...... 6 of 19 JQTHEME{"name" ...} -- switch jQuery UI theme...... 6 of 19 POPUPWINDOW{"topic" ...} -- opens a topic or url in a new window...... 7 of 19 Available jQuery plugins...... 8 of 19 1. bgiframe...... 8 of 19 2. blockUI...... 8 of 19 3. Button (active)...... 8 of 19 4. Chili (active)...... 8 of 19 5. Cookie...... 8 of 19 6. Corner...... 8 of 19 7. Cycle...... 8 of 19 8. Debug...... 9 of 19 9. Easing...... 9 of 19 10. Farbtastic...... 9 of 19 11. FluidFont...... 9 of 19 12. Focus...... 9 of 19 13. Form...... 9 of 19 14. Foswiki (active)...... 9 of 19 15. Gradient...... 10 of 19 16. hoverIntent...... 10 of 19 17. ImageTooltip...... 10 of 19 18. InnerFade...... 10 of 19 19. JsonRpc...... 10 of 19 20. LiveQuery (active)...... 10 of 19 21. Loader...... 10 of 19 22. LocalScroll...... 10 of 19 23. MaskedInput...... 10 of 19 24. Masonry...... 10 of 19 25. Media...... 11 of 19 26. Metadata (active)...... 11 of 19 27. Placeholder...... 11 of 19 28. PNotify...... 11 of 19 29. PopUpWindow (active)...... 11 of 19 30. QueryObject...... 11 of 19 31. Rating...... 12 of 19 32. ScrollTo...... 12 of 19 33. SerialScroll...... 12 of 19 34. ShrinkUrls...... 12 of 19 35. SimpleModal...... 12 of 19

i Table of Contents

JQueryPlugin 36. Slimbox...... 12 of 19 37. Superfish...... 12 of 19 38. Supersubs...... 13 of 19 39. Tabpane...... 13 of 19 40. TextboxList...... 13 of 19 41. Themeswitcher...... 13 of 19 42. Tmpl...... 13 of 19 43. Tooltip...... 14 of 19 44. Treeview...... 14 of 19 45. Twisty...... 14 of 19 46. UI...... 14 of 19 47. UI::Accordion...... 14 of 19 48. UI::Autocomplete...... 14 of 19 49. UI::Button...... 14 of 19 50. UI::Datepicker...... 14 of 19 51. UI::Dialog...... 15 of 19 52. UI::Draggable...... 15 of 19 53. UI::Progressbar...... 15 of 19 54. UI::Resizable...... 15 of 19 55. UI::Slider...... 15 of 19 56. UI::Tabs...... 15 of 19 57. Validate...... 15 of 19 58. WikiWord...... 15 of 19 Using compressed and css files...... 15 of 19 Installation Instructions...... 16 of 19 Plugin Info...... 16 of 19

ii JQueryPlugin jQuery JavaScript library for Foswiki Description

"jQuery is a fast, concise, JavaScript Library that simplifies how you traverse HTML documents, handle events, perform animations, and add Ajax interactions to your web pages."

Powered by WikiRing Consultants

Besides jQuery itself, JQueryPlugin comes with a selection of third party plugins that are thought to be essential for modern web applications. These are integrated into Foswiki either by means of a special macro, by "minimal markup", or custom javascript initializer. "Minimal markup" is a way to avoid the need to write javascript code to initialize the interface. Instead, a special css class is added to an html element that triggers its initialization. See JQueryMetadata for an example.

Use JQREQUIRE to make use of a specific jQuery plugin on a page. This will prepare the page by loading the required javascript and css components. If you need to make a feature available on each and every page of your site, you may add this plugin to the list of default plugins loaded automatically. See configure.

Those plugins coming with their own macro will take care of loading their javascript and css by themselves. So you won't need to call JQREQUIRE explicitly for those listed below. Adding new plugins

The JQuery ecosystem has a huge number of plugins - more than can be included by default by this plugin. If you want to add new plugins, then you will find instructions for adding them at Foswiki:Development.UsingJQueryWithFoswiki#adding_plugins. Writing your own Javascript

Whether writing your own plugins or writing Javascript code in topics, you should observe the Foswiki JQueryCodingStandards. jQuery References and tutorials

• Getting the feet wet • Tutorials • Reference API • Alternative jQuery Documentation and API Browser • Using jQuery with other libraries • Plugin repository • Great Ways to Learn jQuery

Copyright © Delta Controls Inc. Generated 28 Sep 2021 - 21:17 1 of 19 support.deltacontrols.com/...System/JQueryPlugin

Macros

BUTTON{"text" ...} -- renders a nice button

• Parameters:

Parameter: Description: Default: "text", text to be put on this button value="text" accesskey access key used for this button extra class: use foswikiRight or foswikiLeft to specify aligment; use class cyan, red, green for different background colors; use simple for a non-3D button href url of the click target # icon to be put on the left; note, this can be any icon attached to the icon {IconSearchPath}; see also VarJQICON id html id for this button onclick javascript event triggered when clicking the button onmouseout javascript event triggered when the pointer leaves the button onmouseover javascript event triggered when the pointer hovers over the button target topic to open when clicking on the button title popup title displayed when hovering over the button type of action to be performed; available actions are

• button: (default) normal click button, target specified in target or href parameter type • clear: clears all input fields in the form that contains the button button • reset: resets all input fields in a form to their initial value • submit: submits the form that contains the button • save: same as submit but takes care of extra validation steps when saving a topic

• Example:

%BUTTON{ "%MAKETEXT{"Submit"}%" click="confirm('Are your sure?')" }% %BUTTON{ "%MAKETEXT{"Cancel"}%" icon="cross" target="%WEB%.%TOPIC%" }% %CLEAR% • Expands as: Submit Cancel • Note: BUTTONS are floating to the left by default. Take care to add a %CLEAR% after the %BUTTON{...}% so that further content does not overlap with the button. • Related: JQueryButton

Copyright © Delta Controls Inc. Generated 28 Sep 2021 - 21:17 2 of 19 support.deltacontrols.com/...System/JQueryPlugin

TABPANE{...} -- tabpane widget

• This macro starts the tabpane, containing a series of TAB...ENDTABs and ends with ENDTABPANE. A complete tabpane normally looks like this:

%TABPANE% %TAB{"tab 1"}% ... %ENDTAB% %TAB{"tab 2"}% ... %ENDTAB% %ENDTABPANE%

Multiple tabpanes can be nested using the following scheme:

%TABPANE% %TAB{"tab 1"}% %TABPANE% %TAB{"tab 1.1"}% ... %ENDTAB% %TAB{"tab1.2"}% ... %ENDTAB% %ENDTABPANE% %ENDTAB% %TAB{"tab 2"}% ... %ENDTAB% %ENDTABPANE% • Example: see JQueryTabpane for more examples • Parameters:

Parameter: Description: Default: select number or id of tab to select 1 automaxexpand resizes the tabpane to the maximum height to fit into the window off when automaxexpand is enabled, this is the minimum size a tab is allowed to minheight 230 be resized class extra class: use simple for a non-3D tabpane animate (on/off) enables/disables animation of switching tabs off

• Related: VarTAB, VarENDTAB, VarENDTABPANE, JQueryPlugin, JQueryTabpane

ENDTABPANE -- ending tag for tabpane widget

• This closes a previously opened TABPANE. • no parameters • Related: VarTAB, VarENDTAB, VarTABPANE, JQueryPlugin, JQueryTabpane

TAB{"text" ...} -- tab inside a tabpane widget

• Defines a tab inside a TABPANE area; must be closed using ENDTAB. • Parameters:

Copyright © Delta Controls Inc. Generated 28 Sep 2021 - 21:17 3 of 19 support.deltacontrols.com/...System/JQueryPlugin

Parameter: Description: Default: "text" label of the tab Tab when switching tabs, this is the javascript fragment to be executed just before the before tab is displayed after this javascript handler is to be executed after the tab has been made visible this javascript handler will be called when content loaded asynchronously (using afterload the url parameter, below) has finished loading; depending on the network latency, this can be significantly later than execution of the after handler above id of this tab; this id can be used in the TABPANEs select parameter to display id this tab; this id is also added to the class attribute of the html element representing the tab button link from where to load the content of the tab asynchronously when selecting this url tab; the result of the addressed handler will replace the content area; if no url is set the content of the TAB ... ENDTAB area will be shown when the tab is selected width width of the tab area auto height height of the tab area auto container element where ajax content will be loaded; this is only used together with url

• Related: VarENDTAB, VarTABPANE, VarENDTABPANE, JQueryPlugin, JQueryTabpane

ENDTAB -- ending marker for a tab of a tabpane

• This closes a previously opened TAB. • no parameters • Related: VarTAB, VarTABPANE, VarENDTAB, JQueryPlugin, JQueryTabpane

JQICON{"name" ...} -- render an image

• This renders an icon image as found on an icon search path. The icon search path is configured in {JQueryPlugin}{IconSearchPath} and defaults to FamFamFamSilkIcons, FamFamFamSilkCompanion1Icons, FamFamFamFlagIcons, FamFamFamMiniIcons, FamFamFamMintIcons'. The named icon will be picked found first on this path of topics where icons are attached to. The JQICON leverages the general icon loading mechanism as implemented by the JQueryPlugin and used by BUTTON as well. • Parameters:

Parameter: Description: Default: "name" name of the icon to display class additional css class for the img tag alt alt attribute title title attribute format format string used to render the icon; known • $iconPath: url path • $iconClass: css class as specified by the class parameter • $iconAlt: alt attribute-value; if the alt parameter to JQICON is set, this

Copyright © Delta Controls Inc. Generated 28 Sep 2021 - 21:17 4 of 19 support.deltacontrols.com/...System/JQueryPlugin

expands to alt='...' • $iconTitle: title attribute-value; if the title parameter to JQICON is set, this expands to title='...'

• Example:

%JQICON{"tick" alt="alternative content" title="this is a tick icon"}% %JQICON{"cross"}% %JQICON{"disk"}% %JQICON{"star"}% %JQICON{"lightbulb"}% %JQICON{"camera"}% %JQICON{"date"}%

Produces: • Related: VarJQICONPATH, VarICON, JQueryPlugin, FamFamFamSilkIcons

JQICONPATH{"name"} -- render the urlpath to an image

• This is a shortcut for

%JQICON{"name" format="$iconPath"}% • Example: /foswiki/pub/System/FamFamFamSilkIcons/tick.png • Related: VarJQICON, VarICONURL, JQueryPlugin

JQPLUGINS{"plugins" ... } -- display a summary of available plugins

• Parameters:

Parameter: Description: Default: this is a regular expression that the plugin "plugins" identifier must match to be displayed format format string to render information for each 1 $name the format string are: $active $version $author

• active: state of the plugin: displays (active) when this plugin is loaded on the current page • author: author of the plugin • documentation: plugin documentation topic defaults to %SYSTEMWEB%.JQuery$name • homepage: link to the hompeage of this third party plugin • index: the current index in the list of all plugins being displayed • name: name of the plugin as can be used in JQREQUIRE

Copyright © Delta Controls Inc. Generated 28 Sep 2021 - 21:17 5 of 19 support.deltacontrols.com/...System/JQueryPlugin

• summary: short description what this plugin does; most plugins provide this piece of information in the summary section of the documentation topic • tags: list of TML macros this plugin implements • version: version of the plugin as provided by the author of this plugin header string prepended to the output; empty header when no plugin matches footer string appended to the output; empty footer when no plugin matches separator put between each plugin rendered in separator $n a row format string to render a link to any tag tagformat [[%SYSTEMWEB%.Var$tag][$tag]] documentation a plugin implements

• Example:

%JQPLUGINS{ "treeview|slimbox" header=" * JQuery Plugins:$n" format=" * [[$documentation][$name]] v$version was developed by [[$homepage][$author]]" }%

Produces: • JQuery Plugins: ♦ Slimbox v2.04 was developed by Christophe Beyls ♦ Treeview v1.4 was developed by Joern Zaefferer • Related: JQueryPlugin

JQREQUIRE{"plugin, plugin, ... "} -- enable a plugin on the current page

• This macro will load a list of plugins to be added to the current page. Use JQPLUGINS to display the list of available and active plugins. While loading a plugin, additional plugins it may depend on are loaded as well. Information about these dependencies is stored within the plugins themselves and can't be changed. Dependencies also make sure the javascript code is added to the html page in the right order. It uses ADDTOZONE to aggregate javascript and css at the right place on the html page. • Parameters:

Parameter: Description: Default: "plugin[, plugin, plugin]" list of plugins to be loaded warn (on/off) allows you to switch off warnings when a plugin was not found on

• Related: JQueryPlugin, VarJQPLUGINS, VarADDTOZONE

JQTHEME{"name" ...} -- switch jQuery UI theme

• Foswiki's default UI theme is configured in $Foswiki::cfg{JQueryPlugin}{JQueryTheme} and defaults to base. Use configure to change this site wide. Use JQTHEME if you decide to use

Copyright © Delta Controls Inc. Generated 28 Sep 2021 - 21:17 6 of 19 support.deltacontrols.com/...System/JQueryPlugin

a different theme on the current page. • Note: some Foswiki skins may come with their own jQuery UI matching the overall user experience of the web design. • Parameters:

Parameter: Description: Default: name of theme: JQueryPlugin knows the following themes base, lightness, "name" redmod, smoothness; additional themes maybe created using the themeroller base and installed to /foswiki/pub/System/JQueryPlugin/$name

• Related: JQueryUI

POPUPWINDOW{"topic" ...} -- opens a topic or url in a new window

• Parameters:

Parameter: Description: Default: "topic", topic="topic", Topic to open topic="web.topic" url URL to open (if topic is not used) label Link label the topic or the url View template to call when viewing a topic; template "viewplain" not used for URLs width Width of window "600" height Height of window "480" toolbar Show toolbars? "0" scrollbars Show scrollbars? "1" status Show status? "1" location Show location bar? "0" resizable Is the window resizable? "1" left Left position "0" top Top position "0" center Center the window? "0" menubar Show menubar? "0" createnew Create a new window for each popup? "1"

• Example with topic link:

%POPUPWINDOW{"JQueryPlugin" label="Open this topic in a new window"}%

Generates: Open this topic in a new window • Example with url:

%POPUPWINDOW{url="http://foswiki.org"}%

Generates: http://foswiki.org • Enable POPUPWINDOW by writing %JQREQUIRE{"popupwindow"}% on the page

Copyright © Delta Controls Inc. Generated 28 Sep 2021 - 21:17 7 of 19 support.deltacontrols.com/...System/JQueryPlugin

Available jQuery plugins

1. bgiframe

A jQuery plugin that helps ease the pain when having to deal with IE z-index issues. This plugin is enabled by default.

2. blockUI

The jQuery BlockUI Plugin lets you simulate synchronous behavior when using AJAX, without locking the browser. When activated, it will prevent user activity with the page (or part of the page) until it is deactivated. BlockUI adds elements to the DOM to give it both the appearance and behavior of blocking user interaction.

3. Button (active)

This is a simple way to render nice buttons in Foswiki. It can be used to replace submit and reset buttons of html forms as well. FamFamFamContrib is recommended to display nice icons on buttons. Note, that this widget does not participate on the theme roller. This is independent.

4. Chili (active)

Chili is the jQuery code highlighter plugin.

Features:

• Very fast highlighting, trivial setup, fully customizable, thoroughly documented, and MIT licensed • Renders identically on IE, Firefox, Mozilla, Opera, and Safari • Comes bundled with recipes for C++, C#, CSS, Delphi, Java, JavaScript, LotusScript, MySQL, PHP, and XHTML • Many configuration options: Static, Dynamic, Automatic, Manual, Ad-Hoc, with Metaobjects. • Provides fine control over which elements get highlighted by means of a jQuery selector or the mithical jQuery chainability. • Fully supports javascript regular expressions, including backreferences • The replacement format gives full control on what HTML is used for highlighting • Provides examples which show setups and features

5. Cookie

Easy cookie handling using jQuery.

6. Corner

This plugin adds cross-browser support for rounded corners. For modern browsers the appropriate css attributes are used while there is a fallback strategy for others.

7. Cycle

The jQuery Cycle Plugin is a lightweight slideshow plugin. Its implementation is based on the JQueryInnerFade Plugin by Torsten Baldes, the Slideshow Plugin by Matt Oakes, and the jqShuffle Plugin by Benjamin Sterling. It supports pause-on-hover, auto-stop, auto-fit, before/after callbacks, click triggers

Copyright © Delta Controls Inc. Generated 28 Sep 2021 - 21:17 8 of 19 support.deltacontrols.com/...System/JQueryPlugin and many transition effects. It also supports, but does not require, the Metadata Plugin and the Easing Plugin.

8. Debug

Simple jQuery logger / debugger using firebug's console or a div of its own of the form. Useful for JavaScript developers.

9. Easing

Uses the built in easing capabilities added In jQuery 1.1 to offer additional "easing" effects.

10. Farbtastic

Farbtastic is a jQuery plug-in that can add one or more color picker widgets into a page. Each widget is then linked to an existing element (e.g. a text field) and will update the element's value when a color is selected. Farbtastic uses layered transparent PNGs to render a saturation/luminance gradient inside of a hue circle. No Flash or pixel-sized divs are used.

There's a color formfield for easy integration into Foswiki DataForms.

11. FluidFont

Recompute the font size of an element based on its width.

12. Focus

This plugin sets the focus on a form input field or textarea of a form when the page is loaded.

13. Form

The jQuery Form Plugin allows you to easily and unobtrusively upgrade HTML forms to use AJAX. The main methods, ajaxForm and ajaxSubmit, gather information from the form element to determine how to manage the submit process. Both of these methods support numerous options which allows you to have full control over how the data is submitted. Submitting a form with AJAX doesn't get any easier than this!

14. Foswiki (active)

This is plugin takes care of loading the jQuery core and default plugins and performs any initialization steps specific to Foswiki, For instance, it reads all tags from the html head as they have been set by Foswiki and constructs the foswiki javascript object to be used by other javascript plugins.

In addition it adds some basic Foswiki tags to make life easier using jQuery plugins, most notably %JQREQUIRE{"pluginName"}% to load a subsequent jQuery plugin and all of its dependencies, taking care where and how it is added to the html page.

Curent default plugins are: jquery.easing, jquery.metadata, jquery.bgiframe, jquery.hoverIntent

Copyright © Delta Controls Inc. Generated 28 Sep 2021 - 21:17 9 of 19 support.deltacontrols.com/...System/JQueryPlugin

15. Gradient

Adds a gradient to the background of an element.

16. hoverIntent hoverIntent is similar to jQuery's built-in "hover" function except that instead of firing the onMouseOver event immediately, hoverIntent checks to see if the user's mouse has slowed down (beneath the sensitivity threshold) before firing the onMouseOver event.

17. ImageTooltip

18. InnerFade

InnerFade is a small plugin for the jQuery-JavaScript-Library. It's designed to fade you any element inside a container in and out. These elements could be anything you want, e.g. images, list-items, divs. Simply produce your own slideshow for your portfolio or advertisings. Create a newsticker or do an animation.

19. JsonRpc

20. LiveQuery (active)

Live Query utilizes the power of jQuery selectors by firing callbacks for matched elements auto-magically, even after the page has been loaded and the DOM updated.

21. Loader

This plugin allows to delay rendering parts of a page that are loaded later on asynchronously and patched into the page.

22. LocalScroll

This plugin will animate a regular anchor navigation. It will allow your visitors to navigate your site with a smooth scrolling effect.

Each time a link is clicked, the element you decide(can be the whole screen), will gradually scroll to the targeted element, instead of "jumping" as it'd normally do. JQueryScrollTo is used for the animation.

23. MaskedInput

This is a masked input plugin for the jQuery javascript library. It allows a user to more easily enter fixed width input where you would like them to enter the data in a certain format (dates,phone numbers, etc). It has been tested on Internet Explorer 6/7, Firefox 1.5/2/3, Safari, Opera, and Chrome. A mask is defined by a format made up of mask literals and mask definitions. Any character not in the definitions list below is considered a mask literal. Mask literals will be automatically entered for the user as they type and will not be able to be removed by the user.

24. Masonry

Copyright © Delta Controls Inc. Generated 28 Sep 2021 - 21:17 10 of 19 support.deltacontrols.com/...System/JQueryPlugin

Masonry is a layout plugin for jQuery. Think of it as the flip side of CSS floats. Whereas floating arranges elements horizontally then vertically, Masonry arranges elements vertically then horizontally according to a grid. The result minimizes vertical gaps between elements of varying height, just like a fitting stones in a wall.

25. Media jQuery Media Plugin for converting elements into rich media content.

Supported Media Players:

• Flash • Quicktime • Real Player • Silverlight • Windows Media Player • iframe

Supported Media Formats: Any types supported by the above players, such as:

• Video: asf, avi, flv, mov, mpg, mpeg, mp4, qt, smil, swf, wmv, 3g2, 3gp • Audio: aif, aac, au, gsm, mid, midi, mov, mp3, m4a, snd, rm, wav, wma • Other: bmp, html, pdf, psd, qif, qtif, qti, tif, tiff, xaml

26. Metadata (active)

This plugin is capable of extracting metadata from classes, random attributes, and child elements.

27. Placeholder

Creates a 'hint' or 'example' text in a textfield that disappears when the field has focus or has custom input text.

28. PNotify

Full featured plugin to show temporary floating messages for status updates, actions and errors.

29. PopUpWindow (active)

Open a page in a new window.

30. QueryObject

This extension creates a singleton query string object for quick and readable query string modification and creation. This plugin provides a simple way of taking a page's query string and creating a modified version of this with little code.

Copyright © Delta Controls Inc. Generated 28 Sep 2021 - 21:17 11 of 19 support.deltacontrols.com/...System/JQueryPlugin

31. Rating

The Star Rating Plugin is a plugin for the jQuery Javascript library that creates a non-obstrusive star rating control based on a set of radio input boxes.

It turns a collection of radio boxes into a neat star-rating control. It creates the interface based on standard form elements, which means the basic functionality will still be available even if Javascript is disabled.

32. ScrollTo

With this plugin, you will easily scroll overflowed elements, and the screen itself. It gives you access to many different options to customize and various ways to specify where to scroll.

See also JQuerySerialScroll, JQueryLocalScroll

33. SerialScroll

This plugin allows you to easily animate any series of elements, by sequentially scrolling them. It uses JQueryScrollTo to achieve the scrolling animation.

34. ShrinkUrls

Shrinks all urls in a given container whose link text exceeds a given size and have no white spaces in it, that is don't wrap around nicely. If the text is skrunk, the original text is appended to the title attribute of the anchor.

35. SimpleModal

SimpleModal is a lightweight jQuery plugin that provides a simple interface to create a modal dialog.

Note: please consider using UI::Dialog instead.

36. Slimbox

Show images in a lightbox. Slimbox 2 is a 4 KB visual clone of the popular Lightbox 2 script by Lokesh Dhakar, written using the jQuery javascript library. It was designed to be very small, efficient, standards-friendly, fully customizable, more convenient and 100% compatible with the original Lightbox 2.

37. Superfish

Superfish is an enhanced Suckerfish-style menu jQuery plugin that takes an existing pure CSS drop-down menu (so it degrades gracefully without JavaScript). Features:

• Suckerfish-style hover support for IE6. The class added is sfHover by default but can be changed via the options object, • Timed delay on mouseout to be more forgiving of mouse-piloting errors. Default is 800 milliseconds but can be changed via the options object • Animation of sub-menu reveal. uses a fade-in by default but can be given a custom object to be used in the first argument of the animate function. The animation speed is also customisable but is set to ?normal? by default

Copyright © Delta Controls Inc. Generated 28 Sep 2021 - 21:17 12 of 19 support.deltacontrols.com/...System/JQueryPlugin

• Keyboard accessibility. Tab through the links and the relevant sub-menus are revealed and hidden as needed • Supports the hoverIntent plugin. Superfish automatically detects the presence of Brian Cherne?s hoverIntent plugin and uses its advanced hover behaviour for the mouseovers (mouseout delays are handled by Superfish regardless of the presence of hoverIntent). Using this is only an option, but a nice one. The examples on this page are using hoverIntent. If for some reason you want to use hoverIntent on your page for other plugins but do not want Superfish to use it you can set the option disableHI to true. • Indicates the presence of sub-menus by automatically adding arrow images to relevant anchors. Arrows are fully customisable via CSS. You can turn off auto-generation of the arrow mark-up via the ?autoArrows? option if required. • drop shadows for capable browsers ? degrades gracefully for Internet Explorer 6. Can disable shadows completely via options object. • Can show the path to your current page while the menu is idle. The easiest way to understand this is to view the nav-bar example. • Optional callback functions. The 'this' keyword within the handlers you attach will refer to the animated ul sub-menu. From version 1.4 there are now three other optional callbacks allowing for further enhancements and functionality to be added without needing to alter the core Superfish code. • See supersubs companion Javascript to automatically resize menus to fit their contents.

38. Supersubs

This is a companion plugin to superfish. It resizes superfish submenus to fit their contents.

39. Tabpane

This implements an alternative tabpane widget. There is already one in jquery-ui, however as long as jquery-ui is still in flux, this alternative offers a safe substitute well integrated into Foswiki.

Individual tabs can be loaded on demand using a REST call. Installing Foswiki:Extensions/RenderPlugin is recommended for that.

Tabpanes can be nested. Tabs can be extended in height automatically. Heights can be auto-updated to follow windows resize events. Tabpanes can be established as part of reloaded content via ajax.

Note that this widget does not participate in jquery-ui themerolling. It does match JQueryButton in terms of look & feel.

40. TextboxList

Turns a text input into a Facebook like list widget with autocompletion. This plugin adds a new formfield type textboxlist to DataForms.

41. Themeswitcher

42. Tmpl jQuery templates contain markup with binding expressions ('Template tags'). Templates are applied to data objects or arrays, and rendered into the HTML DOM

Copyright © Delta Controls Inc. Generated 28 Sep 2021 - 21:17 13 of 19 support.deltacontrols.com/...System/JQueryPlugin

Documentation for the jQuery Templates plugin can be found on the jQuery documentation site: http://api.jquery.com/category/plugins/templates

Note: The jQuery team has decided not to take this plugin past beta. It is no longer being actively developed or maintained. The docs remain here for the time being (for reference) until a suitable replacement template plugin is ready.

For more on the history of this change, see Official Plugins: A Change in the Roadmap and jQuery Templates and JsViews: The Roadmap

43. Tooltip

Display a customized tooltip instead of the default one for every selected element. Tooltips can be added automatically to any element that has got at title attribute thus replacing the standard tooltip as displayed by the browsers with a customizable one.

Content can be reloaded using AJAX. For example, this can be used to display an image preview in a tooltip. Have a look at the thumbnail REST service of Foswiki:Extensions/ImagePlugin how to load the thumnail from the backend dynamically.

44. Treeview

Lightweight and flexible transformation of an unordered list into an expandable and collapsable tree, great for unobtrusive navigation enhancements. Supports both location and cookie based persistence.

Subtrees can be loaded on demand using AJAX. See the Foswiki:Extensions/RenderPlugin how to implement such REST handlers easily.

45. Twisty

46. UI

Widget collection for jQuery. This is the official user interface library.

47. UI::Accordion

48. UI::Autocomplete

Autocomplete, when added to an input field, enables users to quickly find and select from a pre-populated list of values as they type, leveraging searching and filtering.

By giving an Autocomplete field focus or entering something into it, the plugin starts searching for entries that match and displays a list of values to choose from. By entering more characters, the user can filter down the list to better matches.

49. UI::Button

50. UI::Datepicker

Copyright © Delta Controls Inc. Generated 28 Sep 2021 - 21:17 14 of 19 support.deltacontrols.com/...System/JQueryPlugin

51. UI::Dialog

A dialog is a floating window that contains a title bar and a content area. The dialog window can be moved, resized and closed with the 'x' icon by default.

If the content length exceeds the maximum height, a scrollbar will automatically appear.

A bottom button bar and semi-transparent modal overlay layer are common options that can be added.

A call to $(foo).dialog() will initialize a dialog instance and will auto-open the dialog by default. If you want to reuse a dialog, the easiest way is to disable the "auto-open" option with: $(foo).dialog({ autoOpen: false }) and open it with $(foo).dialog('open'). To close it, use $(foo).dialog('close').

52. UI::Draggable

53. UI::Progressbar

54. UI::Resizable

55. UI::Slider

56. UI::Tabs

57. Validate

Very powerful client-side form validation framework (article).

58. WikiWord

This plugin allows to create a WikiWord on the base of a set of input elements. The value of these are concatenated and the result is normalized to be a valid WikiWord. For example, this can be used to derive a topic name from a free-form topic title text. Using compressed javascript and css files

All jQuery plugins are shipped with uncompressed js and css files, as well as minified and gzip compressed. For instance the jquery.form plugin comes with the following set:

1. /foswiki/pub/System/JQueryPlugin/plugins/form/jquery.form.uncompressed.js 2. /foswiki/pub/System/JQueryPlugin/plugins/form/jquery.form.js 3. /foswiki/pub/System/JQueryPlugin/plugins/form/jquery.form.js.gz

There is a Makefile in the /foswiki/pub/System/JQueryPlugin root directory that ensures all these files are up to date. By default all files in the JQueryPlugin package are up to date, so you only have to issue a make in the root directory if you wish to modify one of the files underneath. This will update all minified and gzipped files as required. Enable the {JQueryPlugin}{Debug} flag in configure, to use the uncompressed files right away to omit the make step during development of new javascript components.

Copyright © Delta Controls Inc. Generated 28 Sep 2021 - 21:17 15 of 19 support.deltacontrols.com/...System/JQueryPlugin

Apache can be configured to automatically use the .gz files if present using mod_rewrite as follows:

RewriteEngine On RewriteCond %{HTTP:Accept-encoding} gzip RewriteCond %{REQUEST_FILENAME}.gz -f RewriteRule ^(.*)$ %{REQUEST_URI}.gz [L,QSA]

AddEncoding gzip .js ForceType application/x-javascript

AddEncoding gzip .css ForceType text/css

So whenever the browser accepts encoding the file as gzip and the file with the .gz exists in the filesystem, then there will be an internal redirect in the server while still enforcing the original mime-type. The browser on the client side will unzip the css and js files automatically. This will drastically reduce bandwidth and speed up interactive performance. Installation Instructions

You do not need to install anything in the browser to use this extension. The following instructions are for the administrator who installs the extension on the server.

Open configure, and open the "Extensions" section. Use "Find More Extensions" to get a list of available extensions. Select "Install".

If you have any problems, or if the extension isn't available in configure, then you can still install manually from the command-line. See http://foswiki.org/Support/ManuallyInstallingExtensions for more help.

For Foswiki versions before 1.1, this plugin requires the Foswiki:Extensions.ZonePlugin to be installed. The ZonePlugin is not required for Foswiki 1.1 or later. Plugin Info

Author(s):Michael Daum Copyright:2007-2012 Michael Daum http://michaeldaumconsulting.com, and Foswiki contributors. License:GPL Release:4.45 Version:4.45 Change History: (4.45) - Release with Foswiki 1.1.6 Item12192: Fix some layout issues 28 Nov 2012: Item12214: default jquery-ui theme overrides manual JQTHEME choice. Item12215: Hide JQLoader using CSS. 26 Oct 2012:Item12195: Default jquery version is jquery-1.8.2 now 24 Oct 2012:Item12190: Chili enabled by default, warning demoted to a note.

Copyright © Delta Controls Inc. Generated 28 Sep 2021 - 21:17 16 of 19 support.deltacontrols.com/...System/JQueryPlugin

17 Oct 2012:(4.44) - Item12048: upgrade to jquery-ui-1.8.23; added jquery-1.8.2 (4.43) - Item11993: upgraded JQueryLiveQuery to 1.3.1 ; reworked documentation and examples; 11 Jul 2012: Item11175: upgrade JQueryValidate to 1.9.0; Item11994: upgraded JQueryUI to 1.8.21 09 Jul 2012:(4.42) - Item11742: removed all jquery prior to 1.7.1 (4.42) - Item11917: simplemodal updated to 1.4.2. fixed upstream bug computing dialog 01 Jun 2012: heights (4.41) - Item11889: added means to hide the close button on textboxlist values; docu 23 May 2012: improvements to textboxlixst and pnotify (4.40) - Item11397, Item11742: use a JSON instead of to export preferences to javascript; add jquery-1.7.2 (new default); deprecate all jquery versions prior to 1.7.1 10 Apr 2012: improve docu and integration of scrollto and serialscroll; removed deprecated foswiki.web, foswiki.topic etc properties (4.33) - Item11511, Item11512: Minor changes to improve JSON output and Javascript validations. Item11685: deprecate simmplemodal, replace by jquery.ui.dialog. 06 Apr 2012: Item11654: JQueryTmpl is discontinued upstream. Item11383: Document jqUIDialogSubmit. Item10383: JQuerySimpleModal sample window isn't displayed properly. (4.32) - re-release Foswiki 1.1.4 - Item11335 revert spinner changes, Item11371 - close 20 Dec 2011: suggestions list. (4.31) - Foswiki 1.1.4 Release. Item11335 JQueryAjaxHelper examples don't work 12 Dec 2011: reliably. (4.30) added jquery-1.7 and jquery-1.7.1; added jquery.loader to ease loading sections 22 Nov 2011: asynchronously (4.22) Incremented version for Foswiki 1.1.4 release. Minor code and documentation 3 Dec 2011: cleanup. (4.21) added config warnings for the deprecated JQuery plugins; and a warining for Chili highlighter corruption; fixed jquery.chili to allow other non-recipe css classes in verbatim 22 Nov 2011:sections; fixed jquery.cookie to return undefined instead of an empty Object when asking for an unknown cookie; fixed JQueryAjaxHelper's users backend to return users and groups improved jquery-ui-dialog integration fixing compatibility of jquery.media with newer jqueries; fixed placement of jquery.tooltips when viewport at right bottom; fixed jquery.superfish's index related to jquery.ui.dialog's; 26 Oct 2011: improved jquery.button click usability; improved and documented integration of jquery.ui.dialog; fixed jquery.ui.resizable to init array objects correctly (4.20) added api to make ui themes pluggable; upgrade to jquery-ui 1.8.16, masked-input 1.3, masonry 2.0, textboxlist 1.0, validate 1.8.1, cycle 2.9995, bgiframe 2.1.2, blockUI 2.39, corner 2.12, gradient 1.0, autocomplete 1.2.2, form 2.80; upgraded all jquery-ui themes to match the latest version; deprecated abandoned jquery.autocomplete in favor of jquery-ui's autocomplete; added modules ui::accordion, 08 Sep 2011:ui::autocomplete, ui::button, ui::datepicker, ui::dialog, ui::draggable, ui::progressbar, ui::resizable, ui::slider, ui::tabs; improved rating formfield to display the actual value as well, not only the stars; added initializer for jquery.validate; improved initializer for simplemodals to make them draggable and resizable; fixed css of treeview, autocomplete, tabpane, button; new foswiki jquery-ui theme; added jquery-1.6.2 and jquery-1.6.3; improved docu of jquery.cycle, jquery.masonry, jquery.validate 20 Jun 2011:(4.11) Fix "Use of uninitialized" in textboxlist 25 May 2011:(4.10) Added JQueryPlaceholder; Updated jquery.autocomplete to work around Firefox 4 problem breaking up/down arrow keys in edit fields; Added jquery.tmpl; Updated jquery.metadata to support html5 attributes; Updated jquery.validate to 1.8.0; Added

Copyright © Delta Controls Inc. Generated 28 Sep 2021 - 21:17 17 of 19 support.deltacontrols.com/...System/JQueryPlugin

jquery-1.5.[0-2] and jquery-1.6.1; Implemented history support for jquery.tabpane; Updated jquery.media and added more skins to the swf player; Fixed jquery.shake to work with elements positioned relatively; Adding context variables for all enabled jQuery modules; (4.03) jQuery default corrected to be 1.4.3. Fixed syntax for accessing meta variables. Improved iterating hash. Updated forms jq plugin from 2.25 to 2.43. Removed useless 11 Apr 2011: BOM code from blockUI. Compress using utf8 encoding by default This version is shipping with Foswiki 1.1.3 21 Feb 2011:(4.02) cleaned up and documented the process for adding new plugins (4.01) added pnotify, configure checker to check that configured {JQueryVersion} is 02 Feb 2011: sane (4.00) adding jquery-1.4.2/3/4 (default is 1.4.3); removing jquery-1.2.6, deprecating jquery-1.3.x (incompatible with shipped jquery-ui); upgraded to jquery-ui 1.8.5 (needs jquery-1.4+); upgraded jquery-cookie; added themeswitcher; fixed spinner in 13 Dec 2010: autocomplete; various fixes to jquery.tooltip; improved tooltip themes (added blackbox theme); fixed rating formfield; improved printout of tabpanes; added new jquery-ui theme flickr; update forms plugin to 2.49 to improve jQuery 1.4 compatibility 27 Oct 2010:(3.75) fixed IE error in chili recipe for TML (3.74) Version included with Foswiki 1.1.0 + fix for code bug in SLIMBOX causing 19 Oct 2010: ImageGalleryPlugin to fail (3.71) JQueryLiveQuery now loads by default; removed JQueryBgiframe and 19 Aug 2010: JQueryEasing plugins from default plugins (3.70) removed outdated spinner and ifixpng plugins; improved documentation; fixed IE 02 Jul 2010:error in treeview; added post method to async mode of treeview; moved %CLEAR to %SYSTEM.DefaultPreferences (3.60) removed pointless TOGGLE module; reworked handling of meta tags by merging 28 May 2010:foswikilibs.js with jquery.foswiki module; fixed IE7 error with floats inside tabpanes; added ajax handler to query foswiki preferences async-ly 30 Apr 2010:(3.51) fixed initial classes of click-areas in treeviews 29 Mar 2010:(3.42) disable plugin when prerequisites are not met (3.41) fix ZonePlugin listed as optional dependency (not optional for Foswiki 1.0.x 28 Mar 2010: installations) (3.40) externalized grid and fullcalendar modules into plugins of their own; upgraded to 26 Mar 2010: jquery-ui 1.7.2; only load i18n support matching the current site language (3.31) Minifier CPAN libs removed from plugin. They will be in core CPAN lib in Foswiki 20 Mar 2010: 1.1 (3.30) upgraded validate to v1.7; added wikiword validation method; fixed 14 Mar 2010: computation of line-height in fluidfont; fixed height issue in tabpane 03 Mar 2010:made ZonePlugin an optional dependency improved js and css compression using yuicompressor; improved simplemodal 01 Mar 2010:integration to foswiki to create modal dialogs with less additional javascript; added custom events to textboxlist: AddValue, DeleteValue , Reset and Clear added livequery and rewrote all initializers to use it; added rating formfield type; updated jqGrid to latest version; improved foswiki integration and documentation of 12 Feb 2010: various plugins; upgraded jwplayer coming with media plugin; using Foswiki:Extensions/ZonePlugin now to optimize page load time 08 Feb 2010:added query-object added jquery-1.4.1, corner, fluidfont, fullcalendar, localscroll, masonry, scrollto, 28 Jan 2010: serialscroll, slimbox; deprecated jquery.nifty; disabled JQSCRIPT and JQSTYLE 11 Nov 2009:added jqGrid library; reorganized documentation 07 Nov 2009:

Copyright © Delta Controls Inc. Generated 28 Sep 2021 - 21:17 18 of 19 support.deltacontrols.com/...System/JQueryPlugin

updated Superfish to 1.4.8 and added examples topic, added supersubs plugin, moved JQuery examples from Sandbox to System 29 Oct 2009:added SCRIPTSUFFIX to foswiki var set (CDot) added perls tubs for jquery.ui, so that you can pull it in via JQREQUIRE now; reworked 14 Sep 2009:plugin initialization to allow elements to be init'ed when loaded via ajax; fixed BUTTON to play nicely with TwistyPlugin; only load ui-theme if you jqrequire the ui library 20 Aug 2009:made JQueryPlugin SafeWikiPlugin compatible improved parsing of foswiki meta tags in html header; fixed jqTreeview initialisation for 02 Jul 2009: jquery-1.3.x; fixed chili initialisation; dropped support for konqueror3 added jquery.focus, jquery.textboxlist, jquery.farbtastic; jquery.gradient; added color 23 Jun 2009:and textboxlist formfield types; made JQueryPlugin pluggable itself; added animation switching tabs; improved automaxexpand feature in tabs 28 Apr 2009:added jquery.media, jquery.simplemodal, shell highlightning for chilli fixed tabpane not being rendered using a rest handler; added id to tabs that can be used to init the first active one; added compressed version of blockUI; replaced ICONTOPIC 03 Feb 2009: preference variable with ICONSEARCHPATH to search for icons in multiple directories (defaults to all of FamFamFamContrib) 15 Jan 2009:fixed click target for relative urls in %BUTTON{}%; yet another jquery.wikiword fix fixed jquery.wikiword not to depend on outside string libraries; added foswiki alias to 13 Jan 2009: global javascript variables (Eugen Mayer) 08 Jan 2009:certified for foswiki/compat; fixed BUTTON target for non-wikiword topics 12 Dec 2008:fixed a series of IE6+IE7 issues added jquery.ifixpng; improved BUTTON tag to have submit and clear and reset buttons; 18 Nov 2008: ie6 fixes for BUTTONs; added missing jquery.wikiword plugin added automaxexpand for TABPANES ; added jquery.shake plugin; reworked BUTTON 13 Nov 2008: tag 15 Oct 2008:added jquery.autocomplete, jquery.cycle 20 Jul 2008:added jquery.form, jquery.maskedinput, jquery.validate 15 Jul 2008:updated to ui-1.5.2; added async treeview; added async options to tabpane 03 Jul 2008:updated to ui-1.5.1 05 Jun 2008:updated to jquery-1.2.6 and ui-1.5-RC1 30 Apr 2008:repackaged to contain jquery UI 13 Feb 2008:upgrade to jquery-1.2.3, as well as most plugins added jquery.metadata plugin; implemented a jquery.tabpane plugin; updated 17 Jan 2008: jquery.dimensions plugin; added jquery.empty plugin to ease development of new plugins 15 Nov 2007:use skin independent way to add javascript files to header 10 Oct 2007:upgraded to jQuery-1.1.4; compressed js and css 12 Jul 2007:initial package containing jQuery-1.1.3.1 Name Version Description Dependencies: Foswiki::Plugins::ZonePlugin >=3.1 Required. required for Foswiki < 1.1 Home:Foswiki:Extensions/JQueryPlugin Support:Foswiki:Support/JQueryPlugin

This topic: System > JQueryPlugin Topic revision: 28 Sep 2011, ProjectContributor

Copyright © by the contributing authors. All material on this site is the property of the contributing authors. Ideas, requests, problems regarding Delta Controls Support? Send feedback

Copyright © Delta Controls Inc. Generated 28 Sep 2021 - 21:17 19 of 19