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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T12:38:44+00:00 2026-06-14T12:38:44+00:00

This question regards website programming. My primary languages are c++/c# and I don’t know

  • 0

This question regards website programming. My primary languages are c++/c# and I don’t know much about web development, except that say I understand html and css. That’s why I’m looking for a relatively simple solution, preferably something out of the box. I don’t have any experience with JavaScript, but for the sake of this project I’m willing to learn it if necessary.

Let’s say I have a database, where each entry is about a book. It contains the fields: title, author(s) and publication date.

I would like to create a simple website with a search box that has this dynamic result feature, so that you get suggestions after you type in a few letters. All those suggestions, as well as search results, need to be based purely on the database.

This could be a static website or based on any Content Management System, I’m familiar with Joomla, but was unable to find an out-of-the box component that would do just that. All those search modules search the entire website and I only need to search the database.

  • 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-14T12:38:47+00:00Added an answer on June 14, 2026 at 12:38 pm

    Probably I can help you with how to implement this feature. We used to call this feature as autocomplete menu.

    First you decide minimum characters to populate autocomplete menu. For example 2

    By using javascript you write keyup event. Once the characters count reaches to the minimum character count. You send AJAX request to the server.

    The server should process this request and do the database search and form a json or xml response or plain text to the client.

    The client parses that response into javascript object and construct a dynamic html for autocomplete menu with the data and render it into the DOM hence display’s just below the search text box.

    Now if you want to display the first result inside the textbox as you type. Here is the method I can suggest as similar as google search box

    Place one label or span just below the input text box. By using css make its position exactly match with the position of the text box. Make sure the starting of text of both input text and label matches. Make the text color of the label less brighter than the font color of text. The font size and font family of the label should match the input text field’s style. Now by using Javascript display the first or most matched text inside the label. Please find the sample code below

     <!DOCTYPE html>
         <head>
           <style>
             label {
               position:relative;
             }
             body, input {
          font-family: 'verdana';
          font-size: 12px;
             }
    
          </style>
        </head>
        <html>
        <body>
    
          <form action="demo_form.asp">
            <input type="text" name="fname" placeholder="Matched Text" /><br>
            <label> Matched Text</label><br>
         </form>
    
       </body>
      </html> 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is a question about setting our website's Language and Culture settings with regards
This question regards my personal photography website. I use the following javascript to generate
This question is in regards to Mike Bostock's very exciting d3.js library in general,
This question is in regards to this blog entry. https://blog.stackoverflow.com/2008/07/easy-background-tasks-in-aspnet/ All the way at
I have just asked this question an hour ago but with regards to IE8
I had posted a question in regards to this code. I found that JTextArea
I bumped into an additional question that I needed in regards to this: Using
This question is directly related to this SO question I posed about 15 minutes
This question is similar in concept to this one , except I see I
I'm new to iPhone development, so apologies if this is a silly question, 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.