So I kinda need to start learning AJAX, soon too.. Obviously that means I will learn a bit of JS with it, which is fine I suppose. I dont plan on using ajax a lot, just for my current site. All I need to do is have an HTML dropdown menu that stays updated with info from a database.
Other than w3 schools, anyone have any good tutorial sites?
Checkout my new forum! http://adminreference.com/
AJAX is the combination of JavaScript and a server side language. It basically consists of one class: XMLHttpRequest. Once you receive the data back from the server you will need to parse it using JS though. Here is a good tutorial: http://forum.codecall.net/tutorials-...=AJAX+tutorial
Ajax and XMLHttpRequest Tutorial
I have it so it will update a small list every few seconds, thats because its just text, but how would I make it update a dropdown, the issue is that you cant put javascript IN javascript.. It doesnt work, atleast not the way I tried it...
If I place the dropdown PHP and JS code in a remote file, then use AJAX to call on it every 5 seconds, it will flash every five seconds, and still doesnt act as a dropdown..
Checkout my new forum! http://adminreference.com/
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks