Development Ajax and PHP help

Discussion in 'Software' started by nry, 4 Sep 2007.

  1. nry

    nry Minimodder

    Joined:
    1 Nov 2006
    Posts:
    513
    Likes Received:
    4
    Just made a list of all my dvds using php and mysql.

    At the top is a search box, which will search the list of dvds for the entered data.

    I want to use ajax, so as data is typed into the text box, the list is updated with the search results.

    (Its only for use over my LAN)


    Its been a good few years since doing and php/html so going to keep it basic for now :)
     
  2. DeX

    DeX Mube Codder

    Joined:
    22 Jul 2002
    Posts:
    4,152
    Likes Received:
    3
    ... good for you ...
     
  3. RTT

    RTT #parp

    Joined:
    12 Mar 2001
    Posts:
    14,120
    Likes Received:
    74
    awesome! :cooldude:

    are you asking us how to do this? :/
     
  4. nry

    nry Minimodder

    Joined:
    1 Nov 2006
    Posts:
    513
    Likes Received:
    4
    haha would help if i put the question at the end wouldnt it

    How do I go about doing this? I don't really understand javascript one bit
     
  5. eek

    eek CAMRA ***.

    Joined:
    23 Jan 2002
    Posts:
    1,600
    Likes Received:
    14
    If it is only going to be used over a LAN then what's the point in using AJAX? IMO you'd be better off using javascript to filter the list rather than repeatedly making server requests!
     
  6. RTT

    RTT #parp

    Joined:
    12 Mar 2001
    Posts:
    14,120
    Likes Received:
    74
    There are quite a few things you need to grasp to do this - event handling the input box where you type your search terms, then firing off XMLHttpRequests, dealing with their responses and then updating the page via DOM. It'd be best for you to find a tutorial rather than one of us just, well, doing it for you via this forum :)

    We can help with specific issues though, say if you were having DOM issues with IE or something :)
     
  7. nry

    nry Minimodder

    Joined:
    1 Nov 2006
    Posts:
    513
    Likes Received:
    4
    You can do that with javascript? :rolleyes:
     
  8. pingxi

    pingxi What's a Dremel?

    Joined:
    5 Sep 2007
    Posts:
    4
    Likes Received:
    0
    Last edited: 5 Sep 2007
  9. Firehed

    Firehed Why not? I own a domain to match.

    Joined:
    15 Feb 2004
    Posts:
    12,574
    Likes Received:
    16
    Sure you can. Though I can't say how :p

    I'd suggest using an AJAX library of sorts though, should make things a lot easier. If you get jQuery and read the Wiki, that should get you most of the way there. Not sure how to go about the live updating, but I know it's possible.
     

Share This Page