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 3212610
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T14:51:21+00:00 2026-05-17T14:51:21+00:00

I am trying to implement the autocomplete method for textboxes. I would like to

  • 0

I am trying to implement the autocomplete method for textboxes.

I would like to use the example based on jquerys autocomplete provided here

<head>
  <link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
  <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
  <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
  
  <script>
  $(document).ready(function() {
    $("input#autocomplete").autocomplete({
    source: ["c++", "java", "php", "coldfusion", "javascript", "asp", "ruby"]
});
  });
  </script>
</head>

The first and Main problem is that i do not know the way of passing my values to the source:

By saying that i mean, supposing i have a a server-side ASP.NET function
GetTheResults as listof(string) or
GetTheResults as string ()

how am i supposed to pass those values as source required by the auto-complete?

The second problem is that the specific way does not use AJAX.
Which means i guess on the load of the form i will load all the available values to the source. Isn’t that an overkill?

What do you suggest instead?

Thanks and regards!

  • 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-17T14:51:21+00:00Added an answer on May 17, 2026 at 2:51 pm

    Oh, maybe I misunderstood – is GetTheResults a server-side ASP.NET function? You didn’t say. This assumes it’s a client-side JavaScript function. If it is server-side, why not implement the AJAX way?


    If GetTheResults returns all values then I think you can just fill it in inline, i.e.

    $("input#autocomplete").autocomplete({
        source: GetTheResults()
        }
    });
    

    The control will then filter the list for display. Or you can use the function source mechanism as documented on that page, e.g.

    $("input#autocomplete").autocomplete({
        source: function(request, response) {
            var results = GetTheResultsForInput(request.term);
            response(results);
        }
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Trying to implement an autocomplete based on this It looks like it's very straight
I'm kind of like stuck trying to implement YUI autocomplete textbox. here's the code:
I'm trying to use jQueryUI Autocomplete to implement a site quick searching feature for
I am trying to implement Autocomplete method in an app. As I type type
I'm trying to implement autocomplete for a textbox using the following code, but it's
I am new to ASP.net & Jquery.I am trying to implement autocomplete in my
I regret to ask this question again. I am trying to implement autocomplete on
i'm trying to implement the jquery autocomplete plugin. I've got it up and running,
I'm trying to implement this web api autocomplete in a standard mvc app. http://techbrij.com/987/jquery-ui-autocomplete-asp-net-web-api
i receive the following error when trying to implement auto-complete based on edismax type.

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.