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
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
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!
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
w3schools has a nice and simple ajax tutorial. http://www.w3schools.com/ajax/ajax_intro.asp Following the tutorial, it should be OK.
Sure you can. Though I can't say how 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.