javascript - What is catcomplete in jQuery's autocomplete plugin? -



javascript - What is catcomplete in jQuery's autocomplete plugin? -

the jquery ui autocomplete plugin uses catcomplete function. don't understand or how works. here's how used:

$("#searchtextbox").catcomplete({ minlength: 1, source: $("#searchtextbox").data("url"), open: function () { $(".ui-autocomplete").css({ left: $(".ui-autocomplete").position().left - 50 + "px", top: $(".ui-autocomplete").position().top - 12 + "px" }); }, select: function (event, ui) { /*code*/ } });

what catcomplete do? purpose?

what catcomplete?

catcomplete property appears on jquery objects. not part of core jquery there presumably other script on page adding it.

how jquery's autocomplete phone call it?

i can't find catcomplete mentioned anywhere in documentation autocomplete, doesn't. modifies css of elements in page class names suggest influenced autocomplete.

what minlength, source, open , select?

properties of object gets passed argument catcomplete finish function. should read catcomplete documentation find out mean.

who decided name?

the author(s) of catcomplete

which part of code knows how utilize them?

the catcomplete script

are part of standard jquery?

no.

is catcomplete function?

yes, has (…) after phone call , not (presumably) throw exception.

what $("#searchtextbox").example({})? doing? defining array , passing function called example?

no. creating object. array [].

or defining function called illustration initializes anonymous array?

no. be:

function example() { var foo = []; }

javascript jquery jquery-ui

Comments

Popular posts from this blog

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

Is there a way to convert an HTML page styled with Bootstrap CSS into email-compatible html? -