• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Item4369: AutoCompletePlugin: Allow users to define their own item select handler

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Extension AutoCompletePlugin Enhancement Closed TWiki:Main.AndrewRJones n/a  

Edit Form Data

Reported By:
Applies To:
Current State:
Waiting For:
Target Release:
Released In:


Another enhancement that seems like a good idea. This will allow us to define our own javascript handler when an item is selected.

For example, we could define our own javascript function like this:

var SubmitJump = function(sType, aArgs) {

And our jump form like this (notice itemselecthandler):

<form name="jumpForm" action="%SCRIPTURLPATH{"view"}%/%BASEWEB%/%BASETOPIC%">%AUTOCOMPLETE{ name="topic" datatopic="Sandbox.AutoCompletePluginTestData"  datasection="topiclist" value="Jump" formname="jumpForm" class="twikiInputField patternFormFieldDefaultColor" onfocus="clearDefaultandCSS(this);" onblur="setDefaultText(this);" itemselecthandler="SubmitJump" size="128px" }%</form>

And our jump form will submit as soon as an item is selected, rather than having to hit enter twice.

-- TWiki:Main/AndrewRJones - 16 Jul 2007

Summary AutoCompletePlugin: Allow users to define their own item select handler
ReportedBy TWiki:Main.AndrewRJones

SVN Range TWiki-4.1.2, Sun, 15 Jul 2007, build 14407
AppliesTo Extension
Component AutoCompletePlugin
Priority Enhancement
CurrentState Closed
WaitingFor TWiki:Main.AndrewRJones
Checkins TWikirev:14413
TargetRelease n/a

Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r3 - 2007-07-16 - TWikiUserMapping_AndrewRJones
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2022 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback