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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T17:07:50+00:00 2026-06-18T17:07:50+00:00

I need to add an autocomplete to a input field in my app using

  • 0

I need to add an autocomplete to a input field in my app using phonegap. I am aware of the autocomplete widget that jquery has and I wanted to use that in my app too. What I need is for the autocomplete to look for strings based off a query made in the sqlite db I have installed on my tablet.

$("#searchInput").autocomplete({
     source: "script_that_queries_the_db.php"
});

From another thread I got this, but since phonegap doesn’t use php, are we allowed to call a JS file similarly and make that query a function, for example

function getSitenames () { 
   //stuff in here to build an array to use by autocomplete 
}

Any help will be appreciated.

EDIT: My JSON/Array I’ll be grabbing from the database will contain around 1900 entries at a time. Since autocomplete will always recall the source, I was hoping to do something like

SELECT name FROM sitenames WHERE name LIKE ?

and parse in the response.text each time and build the array like that. (Since the sitesnames table holds 1900+ entries)

  • 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-06-18T17:07:52+00:00Added an answer on June 18, 2026 at 5:07 pm

    So jQM doesn’t support autocomplete properly, I had to use this, https://github.com/commadelimited/autoComplete.js for a substitution. It essentially works the same, where I used:

    source: function (text) { var arrayClients = findCleints(text); callback(arrayClients) },

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

Sidebar

Related Questions

I'm using Android's AutoCompleteTextView with a CursorAdapter to add autocomplete to an app. In
I need to add the autocomplete widget to search for a word from the
do you know a jQuery Autocomplete Plugin that has the following features. I have
I'm attempting to use JQuery autocomplete and need to get the id of the
When I use the JQuery UI autocomplete, I need to have the tab key
I have 4 jQuery autocomplete textboxes. I need to add some style to one
I need add a new user group for mediawiki. The new group has more
Lots of style-related jquery autocomplete questions (yow), but none that want to "match the
I am using Jquery's autocomplete to retrieve a list of options from the mysql
I need a to use an autocomplete in rails application. Which use the combobox

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.