[GeoNetwork-devel] Autocomplete function tu suggest values for input text fields

Dear all,

Has anybody have any attempts to implement autocomplete functionality for input text fields?
I have such a request and trying to implement it using jQuery http://jqueryui.com/autocomplete/

I wrote a simple code in order to provide a list of UOM for it input text field:

$(document).ready(function() {
$(‘[id*=“_uom”]’).autocomplete({
source: [
{label:“deegres”,value:“dd”},
{label:“metres”,value:“m”},
{label:“kilometres”,value:“km”},
]
});
});

However it does not show up the list when I start to type as it should, but the values are taken, because when I type “m” and press up/down arrow the values are changed inside the text field.

Does anybody have an idea, hint, where can be the problem?

Thank you in advance,
Tomas

Ing. Tomas Kliment

Contact information:

Private:
Juzna 4, 04801 Roznava, Slovakia
Tel: +421 907 232019
Tel: +39 389 4955 954
e-mail: tomas.kliment@anonymised.com
www: http://about.me/klimeto

Ph.D. student:
Slovak University of Technology
Faculty of Civil Engineering
Department of Theoretical Geodesy
Radlinskeho 11, block A, 5th floor
813 68 Bratislava 15, Slovakia
Tel: +421 259274 297
e-mail: tomas.kliment@anonymised.com

Ph.D. Internship - Junior Researcher:
The National Research Council
Institute of Marine Science, Venice, Italy

External consultant:

Polymedia S.p.A, KIT Digital Company
Joint Research Centre of European Commission, Ispra, Italy
e-mail: tomas.kliment@anonymised.com

hi Tomas,

I believe your question had better be posted to a jQuery mailing list than this one.

Kinbd regards
Heikki Doeleman

On Tue, Oct 9, 2012 at 9:44 AM, Tomas Kliment <tomas.kliment@anonymised.com> wrote:

Dear all,

Has anybody have any attempts to implement autocomplete functionality for input text fields?
I have such a request and trying to implement it using jQuery http://jqueryui.com/autocomplete/

I wrote a simple code in order to provide a list of UOM for it input text field:

$(document).ready(function() {
$(‘[id*=“_uom”]’).autocomplete({
source: [
{label:“deegres”,value:“dd”},
{label:“metres”,value:“m”},
{label:“kilometres”,value:“km”},
]
});
});

However it does not show up the list when I start to type as it should, but the values are taken, because when I type “m” and press up/down arrow the values are changed inside the text field.

Does anybody have an idea, hint, where can be the problem?

Thank you in advance,
Tomas

Ing. Tomas Kliment

Contact information:

Private:
Juzna 4, 04801 Roznava, Slovakia
Tel: +421 907 232019
Tel: +39 389 4955 954
e-mail: tomas.kliment@anonymised.com
www: http://about.me/klimeto

Ph.D. student:
Slovak University of Technology
Faculty of Civil Engineering
Department of Theoretical Geodesy
Radlinskeho 11, block A, 5th floor
813 68 Bratislava 15, Slovakia
Tel: +421 259274 297
e-mail: tomas.kliment@anonymised.com

Ph.D. Internship - Junior Researcher:
The National Research Council
Institute of Marine Science, Venice, Italy

External consultant:

Polymedia S.p.A, KIT Digital Company
Joint Research Centre of European Commission, Ispra, Italy
e-mail: tomas.kliment@anonymised.com


Don’t let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev


GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork