Wiipass: jQuery and more Tiziano Treccani's useful plugin for jQuery and other stuff

18ago/0910

jQuery Hintbox 1.3 released

jQuery Hintbox 1.3 news

- MatchRule option added. This option is enabled when MatchHint options is enabled too.
It allows to filter result list values by 3 criteria: StartsWith [S], EndsWith [E], Contains, [C].
Values allowed are "S", "E", "C".
Default value is: "S".
- JSON option added. If json option is enabled, hintbox plugin want to receive a list made like this:

{
    "list" : [
        "AAA",
        "BBB",
        "CCC"
    ]
}

where "AAA", "BBB", "CCC" are the list values.

DOWNLOAD HERE : jquery hintbox 1.3
Working demo: HERE

suggestions and comments are welcome


Commenti (10) Trackback (0)
  1. hello,

    thanx for the code, i was seeking such stuff and it seems to fit my needs.

    I’m new to jQuery, but i was to add a nice feature that i haven’t yet seen in any autocomplete boxes: force to open full or partial list, I’ve choosen PAGEDOWN keycode.

    f.i. if you have just not an idea to what to insert, just hit page_down and get immediate list:

    edit ACTIONS field:


    SPACE: 32,
    PAGEUP: 33,
    PAGEDOWN: 34
    }

    edit init function to include pagedown:

    input.keyup(function(event){

    if (event.keyCode != ACTIONS.UP && event.keyCode != ACTIONS.DOWN &&
    event.keyCode != ACTIONS.ENTER && event.keyCode != ACTIONS.LEFT && event.keyCode != ACTIONS.RIGHT
    && event.keyCode != ACTIONS.PAGEDOWN){

    finally add a clause to listen to pagedown hits:

    // hide dropdown list when pressed enter from input text
    if (event.keyCode == ACTIONS.ENTER){

    var container = getHintListContainer(input);

    if (container.get() != ”){
    closeHintResults(input);
    }
    }
    else if (event.keyCode == ACTIONS.PAGEDOWN){
    loadList(input);
    }

    hope you’ll find it useful

    :)
    Jaco

  2. I like the simplicity of this plugin, but I wanted to return more data then just a list array. I probably overlooked an option that already did this, but if not…
    In the loadList function, after it checks the entries == null, the jQuery.getJSON callback:

    list.each(function(){
    if( typeof(this) == ‘object’) {
    str += this[options.notation];
    } else {
    str += this;
    };
    if(i < listSize){
    str += options.separator;
    };
    i++;
    });

  3. Great plugin… It has all what I need, but I have some problem in IE. (I hate this browser.)

    The hintbox “listbox” is not displaying in IE. I can select item using arrow keys, so “listbox” is there. (And request and response proceed – says application logs.)
    I think, thats problem with z-index, which can be solved with jQuery bgiframe plugin – like this:
    jQuery(‘#filterName’).hintbox({
    url: ’someJ2EEUrl…’,
    onListLoaded: function(list) {
    jQuery(“.hintbox_list_container”).bgiframe();
    }
    });
    But, its a shame, this solution doesnt work.:(

    I will try to patch hintbox to use bgiframe directly.

  4. ho notato che quando scrivi qualcosa nel form e poi cancelli ci

  5. Ciao, e grazie per aver testato il plugin.
    Il problema l’ho notato anche io, devo vedere quale bug si cela dietro al problema e poi rilascer

  6. bhe non sono un esperto ma credo che appena il campo viene attivato con qualche lettera il motore inizia a cercare tar le citt

  7. visto che non avrai nient’altro da fare questo we volevo aggiungere un’altra richiesta. :D

    sarebbe molto comodo poter associare ad ogni citt

  8. Hi all, I’ve just released the new jQuery Hinbox 1.4 version. Please try it! Happy Easter

  9. Hello,

    Greetings from Bulgaria!
    Thank you very much for this plugin! Your software is superb!
    I’ve been stuck on it for few days before I discover that when my titles contain many characters it stop working. So in my metadata file I just limit the characters to 40 and query results to 200. Now everything is fine! Except Internet explorer of course but who cares about IE!

    Best Regards: Kalin

  10. Hi Kalin, thank you very much for your appreciations.
    I’ve never discovered such a bug, I’ll investigate on it. Did you try using the new 1.4 version? If you’ll try it, can you please give me a feedback?

    Kindly regards


Lascia un commento


Ancora nessun trackback.