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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T06:59:57+00:00 2026-05-15T06:59:57+00:00

I am doing a mysql database search and retrieving some results via ajax livesearch

  • 0

I am doing a mysql database search and retrieving some results via ajax livesearch using the example on w3schools and i want to manipulate those results (drag and drop them) but im having a problem because the script loads before you enter the search and get the results so it does absolutely nothing no the search results. Any thoughts on this matter ?

  • 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-15T06:59:58+00:00Added an answer on May 15, 2026 at 6:59 am

    Ah – thanks for the clarification.

    The elements you want to drag are being created after the drag/drop initialization. You need make them draggable:

    for example, add ‘dragMe’ as a class to the items. Once the list is populated from the server, then make those items dragable:

    $('.dragMe').draggable();
    

    I would really look into jQuery’s ajax functions and their autocomplete

    To clarify and for jquery (against your cited example):

    function showUser(str)
    {
       $.get( 'getuser.php', { q: str },
           function(data) {
              $('#txtHint').html( data ); // add the returned content to #txtHint
              $('#txtHint').find('.dragItem').draggable(); //make the new items draggable
           }, 'html' );
    }
    

    In your php, change your display so it is blocks that can be dragged.

    while($row = mysql_fetch_array($result))
      {
      echo "<div class="dragItem">"; // see how we're adding the 'dragItem' class? 
      echo "Firstname " . $row['FirstName'];
      echo "</div>";
      }
    

    past that, you’ll really want to do some more research to get a better idea of whats going on.

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

Sidebar

Related Questions

I'm using the oursql Python library to talk to a MySQL database. I want
I am using MySQL fulltext and PHP (codeigniter) to search a database containing RSS
Doing my first tryouts with foreign keys in a mySQL database and are trying
I am using mysql with php Yii framework.When doing data modelling I came accross
We want to search for a string (ie. Hello World) in all our database
i'm having a little trouble with an elseif MySQL query i'm using to search
I'm using mysql with django 1.3 and I have posts stored in a database.
I want my search to only display results that match values in the same
I am doing a query on an mysql database based on typed data sent
I used to use the standard mysql_connect(), mysql_query(), etc statements for doing MySQL stuff

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.