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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T13:00:04+00:00 2026-05-23T13:00:04+00:00

What is the proper way to get autocomplete working with remote data? I read

  • 0

What is the proper way to get autocomplete working with remote data? I read the document at

http://docs.jquery.com/Plugins/Autocomplete

and ran the example code. The example worked just fine for local data stored in a JS array, but when I used a remote URL, it doesn’t work. I see the autocomplete HTTP request being generated, and I can see my local web server responding with the correct data. But the autocomplete info does not pop up.

Here is my .html code, it is only different by 2 lines from the example in the jquery documentation:

<html>
<head>
  <script src="http://code.jquery.com/jquery-latest.js"></script>
  <link rel="stylesheet" href="http://dev.jquery.com/view/trunk/plugins/autocomplete/demo/main.css" type="text/css" />
  <link rel="stylesheet" href="http://dev.jquery.com/view/trunk/plugins/autocomplete/jquery.autocomplete.css" type="text/css" />
  <script type="text/javascript" src="http://dev.jquery.com/view/trunk/plugins/autocomplete/lib/jquery.bgiframe.min.js"></script>
  <script type="text/javascript" src="http://dev.jquery.com/view/trunk/plugins/autocomplete/lib/jquery.dimensions.js"></script>
  <script type="text/javascript" src="http://dev.jquery.com/view/trunk/plugins/autocomplete/jquery.autocomplete.js"></script>
  <script>
  $(document).ready(function(){
     url = "http://localhost:8000/autocomplete/"
     $("#example").autocomplete(url);
  });
  </script>

   </head>
   <body>
     API Reference: <input id="example" /> (try "C" or "E")
   </body>
</html>

Is there anything else needed in the .htm file? Should I change the data format returned by the server? Currently when I type “fr” into the text box, my server returns this:

["fractal","FRACTAL","fractalzebra","frad","Fraet",]

I am just trying to display a simple list of strings, I don’t need to include any additional data in the server response unless it turns out to be required by jquery.

Thanks in advance, this problem has really been stumping me.

-Travis

  • 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-23T13:00:05+00:00Added an answer on May 23, 2026 at 1:00 pm

    Make sure you’re also not running into the Same Origin Policy issue which, prior to jQuery 1.5, required all different origin domain ajax calls to be jsonp, and now are implementable with crossDomain:true. As far as the Autocomplete plugin goes, I’m not aware how it fetches the data so this might not be applicable, but what you said about the local version working and the remote data not made me think of this immediately.

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

Sidebar

Related Questions

I've been looking for a proper way to get file associations working on WinXP
I need a cross-platform way to get the current working directory (yes, getcwd does
What's the proper way to get DisplayMetrics, i.e. get screen/display info such as density
I'm new to nHibernate, and trying to get my head around the proper way
Is there a proper way to rebind events in JQuery UI when tabs are
What is the proper way to get the value stored in a particular field
I wonder what is the proper way to get back some message from a
I'm having trouble figure out the proper way to get a sparkline graph rendering
Assuming I've done the following from c:\, what is proper way to get the
When I embed IronRuby what is the proper way to get a reference to

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.