SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Hybrid View

  1. #1
    Non-Member
    Join Date
    Sep 2001
    Posts
    43
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Sortable List / Data No Longer Sortable

    Hey Guys,

    My script is the same as this http://www.w3schools.com/php/php_ajax_database.asp

    When the data comes back to me its using

    document.getElementById("txtHint").innerHTML=xmlHttp.responseText

    I get the data back fine. However inside getuser.php my data is in a sortable list. If i use this code above. My data comes back but I can no longer sort my list and move things around (I'm guessing because its returned as HTML only). Can anybody give me a solution of what i need to change so my list is also sortable again?

  2. #2
    Non-Member
    Join Date
    Sep 2001
    Posts
    43
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i guess im doomed no body has an answer

  3. #3
    SitePoint Member
    Join Date
    Jul 2007
    Posts
    18
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    1. wat do u mean by the data gets back fine? wat r getting back? a table?
    2. wat do u mean by "inside getuser.php my data is in a sortable list" ... if u use php, it is a server script it wont allow u to do sorting on client side... if u use javascript to sort in getuser.php.. hv u include the same javascript in the "get back page" ?

  4. #4
    Non-Member
    Join Date
    Sep 2001
    Posts
    43
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm using ajax to get the file AND im using ajax to make the data it returns sortable. Im getting the data back in bullet points but of course no javascript functionality


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •