• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

cfinput autosuggest "autolimiting" number of results

Explorer ,
Nov 27, 2007 Nov 27, 2007

Copy link to clipboard

Copied

hI,

cf8 trial, oracle 9i, w2k3 sp2

i've confirmed that for certain entries the SQL returns 70+ entries, yet no matter what i do, the cfinput autosuggest only returns the first 10.

Here's the cfc code, which was adapted directly from an example in Ben Forta's blog:

Views

534

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Nov 27, 2007 Nov 27, 2007

Copy link to clipboard

Copied

Did a view source and found this line which must've been injected by the stock .js:

_cf_autosuggest.maxResultsDisplayed = 10;

hmmmm....

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Nov 27, 2007 Nov 27, 2007

Copy link to clipboard

Copied

Looks like there are a number settings in the _cf_autosuggest object available to the cfinput tag that Dreamweaver isn't aware of. The simplest to include in the cfinput tag appear in view source

_cf_autosuggest.onbinderror=null;
_cf_autosuggest.typeAhead = false;
_cf_autosuggest.maxResultsDisplayed = 1000;
_cf_autosuggest.useShadow = true;
_cf_autosuggest.showloadingicon = true;
_cf_autosuggest.valuePresent=false

Here how I put a one in my cfinput tag. (this works!)

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Nov 27, 2007 Nov 27, 2007

Copy link to clipboard

Copied

you know of the maxResultsDisplayed, autosuggestBindDelay,
autosuggestMinLength, showAutosuggestLoadingIcon and typeahead
attributes of cfinput tag in cf8, dont you?

---
Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Nov 28, 2007 Nov 28, 2007

Copy link to clipboard

Copied

LATEST
Azadi -- Thanks. I'd failed to check the CF8 livedocs.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation