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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T04:30:40+00:00 2026-05-18T04:30:40+00:00

I am trying to use the autocomplete script on http://www.devbridge.com/projects/autocomplete/jquery/ . Now, the downloaded

  • 0

I am trying to use the autocomplete script on
http://www.devbridge.com/projects/autocomplete/jquery/.

Now, the downloaded code did not have the callback script. I made my own PHP script – that did not work. I am trying to use devbridge’s serviceUrl (absolute), but that too does not work. The local version (months) on the site is working on my site too. But the one with callback does not work.

Here are the steps I tried:

I) Downloaded http://www.devbridge.com/projects/autocomplete/jquery/ directory.

II)
1) Approach one: I changed serviceUrl line in index.html to:

serviceUrl: 'http://www.devbridge.com/projects/autocomplete/service/autocomplete.ashx',

Still, only the local version of autocomplete works.

(The serviceUrl seems to be working fine – try http://www.devbridge.com/projects/autocomplete/service/autocomplete.ashx?query=a in the browser.

2) Approach two: I tried writing my own autocomplete.php, but that did not work either:

<?php

$temp=$_GET["query"];

 // Return some dummy data that matches the format.
 //json_encode introduces extra quotes ", so I decided to manually format the result

$result="{ query:'$temp',suggestions:['${temp}beria','${temp}byan Arab Jamahiriya','${temp}echtenstein','${temp}thuania'],data:['${temp}lr,'${temp}ly,'${temp}li,'${temp}lt] }";

header('Content-type: application/json');

echo $result;
?>

I checked that on every key press, correct requests are being made to autocomplete.php on my server. (And “seemingly”, the php script is giving correct output). But the autocomplete does not work.

Any pointers on how to debug? Am I missing some files/modules etc?

regards,

JP

  • 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-18T04:30:41+00:00Added an answer on May 18, 2026 at 4:30 am

    In case someone finds this useful:

    I have started using the solution on code.google.com ( http://code.google.com/p/jquery-autocomplete/ )

    It is very light weight and easy to use. It had a minor bug (list not getting erased if you erase the whole text). Fixed it by adding 8-10 lines of extra code.

    You can download the file from here:

    https://sites.google.com/site/janakporwal/home/javascript-auto-complete

    (direct link:
    https://sites.google.com/site/janakporwal/home/javascript-auto-complete/jquery.autocomplete.js?attredirects=0&d=1
    )

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

Sidebar

Related Questions

I'm trying to use jQuery to format code blocks, specifically to add a <pre>
I am trying to use jquery autocomplete plugin, I want it to suggest ItemCodes
I'm trying to use the AutoComplete feature of JQuery to update multiple fields on
I'm trying to use the Optiflag package in my Ruby code and whenever I
I am trying to change my comboboxes to use autocomplete so i leverage the
Trying to use autocomplete functionality of YUI, we ran into the fact that it's
I am trying to use jQuery AJAX. What my requirement is, i wish to
I am trying to use the jQueryUI autocomplete plugin but I am unable to
Trying to use an excpetion class which could provide location reference for XML parsing,
Trying to use a guid as a resource id in a rest url but

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.