version: #4 (current)  |  last edited by: zenoyu  |  on: tuesday, september 4, 2007, 11:16 pm pdt (about 4 years ago)


Download QAutoCompleteTextBox.zip

filename: QAutoCompleteTextBox.zip  |  mime type: application/zip  |  file size: 33.79 KB




QAutoCompleteTextBox (Using JQuery)

==== From ====
<http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/>

Currently work with local data set only

==== Feedback Thread: ====
<http://www.qcodo.com/forums/topic.php/2146>

==== Installation ====
Download JQuery plugins from above link and save into the folder: /assets/js/
1> jquery.autocomplete.js
2> dimensions.js
3> jquery.bgiframe.min.js

Also Download the JQuery library from <http://jquery.com/> [Make sure the name is jquery.js]
4> jquery.js

And also save css into the folder: /assets/css/
5> jquery.autocomplete.css

Finally save the QAutoCompleteTextBox.class.php into the /includes/qcodo/qform folder
6> QAutoCompleteTextBox.class.php

==== Example ====
$this->txtFilterKeyword = new QAutoCompleteTextBox($this);
$this->txtFilterKeyword->Name = QApplication::Translate('Keyword');

$objMemberArray = Member::LoadAll();
if ($objMemberArray) foreach ($objMemberArray as $objMember) {
$objListItem = new QListItem($objMember->__toString(), $objMember->Id);
$this->txtFilterKeyword->AddItem($objListItem);
}

==== Some Configuration Variables ====
/**
* Fill the textinput while still selecting a value, replacing the value if more is type or something else is selected. Default: false
*/
protected $blnAutoFill=false;
/**
* If set to true, the autocompleter will only allow results that are presented by the backend. Note that illegal values result in an empty input box. Default: false
*/
protected $blnMustMatch=false;
/**
* Whether or not the comparison looks inside (i.e. does "ba" match "foo bar") the search results. Only important if you use caching. Don’t mix with autofill. Default: false
*/
protected $blnMatchContains=false;
/**
* Whether or not the comparison is case sensitive. Only important only if you use caching. Default: false
*/
protected $blnMatchCase=false;
/**
* The minimum number of characters a user has to type before the autocompleter activates. Default: 1
*/
protected $intMinChars=0;


Copyright © 2005 - 2012, Quasidea Development, LLC
This open-source framework for PHP is released under the terms of The MIT License.