Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1013927
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T10:10:40+00:00 2026-05-16T10:10:40+00:00

I am using the deprecated autocomplete plugin (since I’m using the legacy jquery lib

  • 0

I am using the deprecated autocomplete plugin (since I’m using the legacy jquery lib 1.3.2).

My problem is that the autocomplete plugin tries to cache the requests. I am using a server side url to return the results.

Consider this scenario:

Keyword : Results
i : ikea, iphone, ipod, ipad, iphone 4
ip: iphone, ipod, ipad, iphone4
iph: iphone, iphone 4
ipho: iphone, iphone 4

…

You see the problem, the first time it got 5 results – that’s the limit I have set at backend, its returning 5 results only. The next time, it doesn’t send a request, it refines the resultset it got in first request and so on.

How can I make the autocomplete plugin send a request everytime the input changes?

Here is my code…

$("#query").autocomplete(
    "/getSuggestions/", {
        autoFill: true,
        selectFirst: false,
        cacheLength: 1
    });

I tried setting the cacheLength to “1”, but that doesn’t work.

Can somebody help me out over here?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T10:10:41+00:00Added an answer on May 16, 2026 at 10:10 am
    $("#query").autocomplete(
        "/getSuggestions/", {
            autoFill: true,
            selectFirst: false,
            cacheLength: 0
        });
    

    It turned out to be quite a simple solution – setting the cacheLength to 0 does the trick.

    I was referring the explanation in documentation till now…

    The number of backend query results to
    store in cache. If set to 1 (the
    current result), no caching will
    happen
    . Must be >= 1.

    Anyway I got the desired solution.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I was building something using jQuery's AutoComplete plugin last week, but today I found
Please see below: I tried using Absolute layout, but that's deprecated. I appreciate your
I am using Jquery ui Autocomplete.But it show error autocomplete showing self.element.propAttr error. this
Eclipse is warning that I'm using a deprecated method: eventDay = event.getEvent_s_date().getDate(); So I
I am using the UIAccelerotmeterDelegate method accelerometer:didAccelerate: but recently that method has been deprecated
When using GWT I get following warning: Referencing deprecated class 'com.google.gwt.user.client.rpc.SerializableException' While it's only
I have trouble using sed. I need to replace some lines in very deprecated
How to add Preference in ICS using addPreferencesFromResource()? It is shown deprecated in ics.
Using SQL Server 2008 R2 we are looking for a way to select the
DEPRECATION WARNING: You are using deprecated behavior which will be removed from the next

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.