• exec/load/typeahead.js

    From echicken@VERT to CVS commit on Thu Oct 22 00:11:05 2015
    exec/load typeahead.js NONE 1.1
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv12367

    Added Files:
    typeahead.js
    Log Message:
    String input prompt with optional autocomplete suggestions.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From Digital Man@VERT to echicken on Thu Oct 22 00:17:13 2015
    Re: exec/load/typeahead.js
    By: echicken to CVS commit on Thu Oct 22 2015 12:11 am

    exec/load typeahead.js NONE 1.1
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv12367

    Added Files:
    typeahead.js
    Log Message:
    String input prompt with optional autocomplete suggestions.

    This sounds like a cool library. I'm glad to see it wasn't added to an existing "catch-all" load file (e.g. funclib.js). :-)

    digital man

    Synchronet "Real Fact" #79:
    85 SBBSecho registrations were sold (at $49) between 1994 and 1996.
    Norco, CA WX: 66.4øF, 66.0% humidity, 3 mph SSW wind, 0.00 inches rain/24hrs ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From echicken@VERT to CVS commit on Thu Oct 22 10:42:42 2015
    exec/load typeahead.js 1.1 1.2
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv32742

    Modified Files:
    typeahead.js
    Log Message:
    Datasource functions can return arrays of strings or objects. Restrict width and/or girth of input text. Updated comments.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From echicken@VERT to CVS commit on Thu Oct 22 14:44:38 2015
    exec/load typeahead.js 1.2 1.3
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv4451

    Modified Files:
    typeahead.js
    Log Message:
    Added minLength option. Input must be at least this lengthy before datasource functions will be called. (Default: 1)

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From echicken@VERT to CVS commit on Fri Oct 23 22:29:05 2015
    exec/load typeahead.js 1.3 1.4
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv17345

    Modified Files:
    typeahead.js
    Log Message:
    Reset console.line_counter when cleaning up.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From echicken@VERT to CVS commit on Fri Oct 23 22:41:55 2015
    exec/load typeahead.js 1.4 1.5
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv17493

    Modified Files:
    typeahead.js
    Log Message:
    Jump to top of tree on new printable input.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From echicken@VERT to Digital Man on Sat Oct 24 02:17:44 2015
    Re: exec/load/typeahead.js
    By: Digital Man to echicken on Thu Oct 22 2015 00:17:13

    This sounds like a cool library. I'm glad to see it wasn't added to an existing "catch-all" load file (e.g. funclib.js). :-)

    I'm fairly happy with it so far. It doesn't actually "autocomplete", but it lets the user choose from a lightbar list of suggestions based on what they typed (or just submit their own text.)

    Writing 'datasource' functions for it is pretty simple. The function receives the current string as an argument, then returns an array of strings (or objects) to be used as suggestions. (There are configurable delays and such involved so that things don't go too nuts while the user is typing.)

    The "write email" item on the messages menu of my BBS is a decent example of this in action.

    ---
    echicken
    electronic chicken bbs - bbs.electronicchicken.com - 416-273-7230
    þ Synchronet þ electronic chicken bbs - bbs.electronicchicken.com
  • From echicken@VERT to CVS commit on Sat Nov 7 22:07:34 2015
    exec/load typeahead.js 1.5 1.6
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv23530

    Modified Files:
    typeahead.js
    Log Message:
    Optionally set a maximum height for the suggestion box.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From echicken@VERT to CVS commit on Wed Jan 6 21:54:54 2016
    exec/load typeahead.js 1.6 1.7
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv12921

    Modified Files:
    typeahead.js
    Log Message:
    Clear the input field on submit.
    Added 'focus' property, getter, setter.


    ---
    þ Synchronet þ V
  • From echicken@VERT to CVS commit on Sun Oct 13 08:01:11 2019
    exec/load typeahead.js 1.7 1.8
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv32765

    Modified Files:
    typeahead.js
    Log Message:
    Input position was offset incorrectly if prompt had ctrl-a codes, fixed
    with strip_ctrl.


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From echicken@VERT to CVS commit on Mon Jun 1 11:21:31 2020
    exec/load typeahead.js 1.8 1.9
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv6976

    Modified Files:
    typeahead.js
    Log Message:
    Added maxResults option.
    Only this many results from the datasources will be added to the
    suggestion tree. 0 means no limit.


    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From echicken@VERT to Git commit to main/sbbs/master on Tue Feb 2 19:45:16 2021
    https://gitlab.synchro.net/main/sbbs/-/commit/131b0153ebd4ba4588446505
    Modified Files:
    exec/load/typeahead.js
    Log Message:
    something something backspace
    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From echicken@VERT to Git commit to main/sbbs/master on Tue Feb 2 19:55:01 2021
    https://gitlab.synchro.net/main/sbbs/-/commit/972084a4825906f7972597d9
    Modified Files:
    exec/load/typeahead.js
    Log Message:
    Remove weird ugly object literal notation.
    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From echicken@VERT to Git commit to main/sbbs/master on Tue Feb 2 19:55:01 2021
    https://gitlab.synchro.net/main/sbbs/-/commit/5a2b4cc6d4f88817a48d593b
    Modified Files:
    exec/load/typeahead.js
    Log Message:
    Say 'No results found' if, uh, no results were found.
    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From echicken@VERT to Git commit to main/sbbs/master on Thu Apr 1 11:46:33 2021
    https://gitlab.synchro.net/main/sbbs/-/commit/2e4c79b86bf75cc84e5bc909
    Modified Files:
    exec/load/typeahead.js
    Log Message:
    Added 'autoDelete' setting. Probably needs some more work.
    If true, and if this is our first input, and if the users types
    something that would otherwise have been appended to the default
    text, then the default text is deleted first.
    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From echicken@VERT to Git commit to main/sbbs/master on Fri Nov 24 06:35:12 2023
    https://gitlab.synchro.net/main/sbbs/-/commit/ab139707eb656dead8d1efe9
    Modified Files:
    exec/load/typeahead.js
    Log Message:
    Don't crash if you don't got no tree yet. Fixes #546.
    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net