Willkommen, Gast
Benutzername: Passwort: Angemeldet bleiben:
  • Seite:
  • 1
  • 2

THEMA: jQuery Autocomplete

jQuery Autocomplete 1 Jahr 2 Monate her #106580

  • g3guy
  • g3guys Avatar
  • OFFLINE
  • Fresh Lemon
  • Beiträge: 16
  • Karma: 0
Denis, Tony - thank you for all your help!

This section now works like a charm! (finally tested)

If I have any nit picks it would be that the options "jump" when selected. So as soon as I select my first option, both options shift to the right.
Der Administrator hat öffentliche Schreibrechte deaktiviert.

jQuery Autocomplete 1 Jahr 1 Monat her #107153

  • lfanfoni
  • lfanfonis Avatar
  • OFFLINE
  • Platinum Lime
  • Beiträge: 369
  • Dank erhalten: 59
  • Karma: 16
This script is a fantastic solution! Expecially for italians users...
In Italy we have 110 Province and 8.057 Comuni (cities).
I've adapted the script in order to have a unique ID for cities in each province (3 chars instead 2), beacause in many cases we have more than 100 cities for province.
In this example the lenght of answer code for both scales is fixed at 5 characters (maximum for anser code). First two characters is abbreviation of province (RM is Province of Rome). Lasts 3 characters is the unique ID for both scales, expecially for the Cities, so the maximum number of cities for province now is 999.
I've modified the scritp in the "Substring" arguments. For example:
Old: substring(0, $(this).val().length - 2)
New: substring(0, $(this).val().length - 3)
I attach a sample of this solution, with the modified script (I also commented).
I ask to Denis and Tony the permission to publish the complete solution with the modified script in the italian forum.
Thanks a lot for this discussion/solution.
Luciano

Dateianhang:

Dateiname: dual_scale_filters_5char.lsq
Dateigröße: 22 KB
Der Administrator hat öffentliche Schreibrechte deaktiviert.

jQuery Autocomplete 1 Jahr 1 Monat her #107158

  • DenisChenu
  • DenisChenus Avatar
  • OFFLINE
  • Moderator Lime
  • Beiträge: 7144
  • Dank erhalten: 977
  • Karma: 285
The script don't have actually a licence ?

MIT surely.... (then yes ... you can copy /paste / adapt / etc ...

And yes : MIT at starting : gitorious.org/ls-selectfilter/ls-selectf...d:selectfilter.js#L3
Letzte Änderung: 1 Jahr 1 Monat her von DenisChenu.
Der Administrator hat öffentliche Schreibrechte deaktiviert.
Folgende Benutzer bedankten sich: lfanfoni

jQuery Autocomplete 1 Jahr 1 Monat her #107162

  • lfanfoni
  • lfanfonis Avatar
  • OFFLINE
  • Platinum Lime
  • Beiträge: 369
  • Dank erhalten: 59
  • Karma: 16
I've added a comment to documentate my modify. This:
/*
Modified Version by Luciano Fanfoni 04/04/2014
Fixed Lenght of both Answer Code (scale 1 & 2): 5
Firsts 2 chars used to filter. Lasts 3 chars used to identify unically options of scale2
Example of Modified code:
Old: substring(0, $(this).val().length - 2)
New: substring(0, $(this).val().length - 3)


Distributed under MIT licence
*/
Der Administrator hat öffentliche Schreibrechte deaktiviert.

jQuery Autocomplete 4 Tage 10 Stunden her #120697

  • mas_carpone
  • mas_carpones Avatar
  • OFFLINE
  • Expert Lime
  • Beiträge: 134
  • Dank erhalten: 8
  • Karma: 0
Hi Guys,

Back on this thread which I struggle a bit to understand. I have 2 questions here:

1. is there somewhere a summary of how this can be tackled (Denis maybe)? as there seem to be different versions, with bug fixes, etc. Any sort of a "final word" on this?

2. anything "more robust" planned along those lines in future releases?

Cheers!
Der Administrator hat öffentliche Schreibrechte deaktiviert.

jQuery Autocomplete 4 Tage 9 Stunden her #120701

  • DenisChenu
  • DenisChenus Avatar
  • OFFLINE
  • Moderator Lime
  • Beiträge: 7144
  • Dank erhalten: 977
  • Karma: 285
Hi,

Already have a 'not finalized plugin', not public actually.
Der Administrator hat öffentliche Schreibrechte deaktiviert.

jQuery Autocomplete 2 Tage 16 Stunden her #120789

  • mas_carpone
  • mas_carpones Avatar
  • OFFLINE
  • Expert Lime
  • Beiträge: 134
  • Dank erhalten: 8
  • Karma: 0
Hmmmmm :woohoo: that's a teaser...

A planned release date - or some hints on the plugin itself?
Der Administrator hat öffentliche Schreibrechte deaktiviert.

jQuery Autocomplete 2 Tage 15 Stunden her #120792

  • DenisChenu
  • DenisChenus Avatar
  • OFFLINE
  • Moderator Lime
  • Beiträge: 7144
  • Dank erhalten: 977
  • Karma: 285
mas_carpone schrieb:
A planned release date
When i have time to test and fix some issue, and to do a clean system and doc.
some hints on the plugin itself?
testing.sondages.pro/limesurvey/529393?newtest=Y
Letzte Änderung: 2 Tage 15 Stunden her von DenisChenu.
Der Administrator hat öffentliche Schreibrechte deaktiviert.

jQuery Autocomplete 2 Tage 14 Stunden her #120799

  • mas_carpone
  • mas_carpones Avatar
  • OFFLINE
  • Expert Lime
  • Beiträge: 134
  • Dank erhalten: 8
  • Karma: 0
The "search" feature is very promising!

Is it still envisaged to have an option along the lines of cascading dropdown lists? (Country, Province, District, etc.)
Der Administrator hat öffentliche Schreibrechte deaktiviert.

jQuery Autocomplete 2 Tage 14 Stunden her #120800

  • DenisChenu
  • DenisChenus Avatar
  • OFFLINE
  • Moderator Lime
  • Beiträge: 7144
  • Dank erhalten: 977
  • Karma: 285
mas_carpone schrieb:
The "search" feature is very promising!
? select use autocomplete, then you can filter too. The 3 exampe have "search" option.
mas_carpone schrieb:
Is it still envisaged to have an option along the lines of cascading dropdown lists? (Country, Province, District, etc.)
Can be done using category in dropdown , but surely some work more.
Der Administrator hat öffentliche Schreibrechte deaktiviert.
  • Seite:
  • 1
  • 2
Moderatoren: ITEd
Ladezeit der Seite: 0.157 Sekunden
Donation Image