• exec/load/typeahead.js

    From echicken@VERT to CVS commit on Thursday, October 22, 2015 00:11:05
    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 Thursday, October 22, 2015 00:17:13
    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 Thursday, October 22, 2015 10:42:42
    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 Thursday, October 22, 2015 14:44:38
    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 Friday, October 23, 2015 22:29:05
    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 Friday, October 23, 2015 22:41:55
    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/ECBBS to Digital Man on Saturday, October 24, 2015 02:17:44
    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 Saturday, November 07, 2015 22:07:34
    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 Wednesday, January 06, 2016 21:54:54
    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 þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net
  • From echicken@VERT to CVS commit on Sunday, October 13, 2019 08:01:11
    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 Monday, June 01, 2020 11:21:31
    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 Tuesday, February 02, 2021 19:45:16
    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 Tuesday, February 02, 2021 19:55:01
    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 Tuesday, February 02, 2021 19:55:01
    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 Thursday, April 01, 2021 11:46:33
    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