Guest nicepants Posted March 3, 2006 Share Posted March 3, 2006 http://www.w3schools.com/ajax/ajax_database.aspThis page contains an excellent example of fetching database information with AJAX. Unlike the rest of the tutorial, however, there is no sample code showing how this is done.Is the tutorial incomplete? Or did I just miss some of the code somewhere? Link to comment Share on other sites More sharing options...
Viggy Posted March 4, 2006 Share Posted March 4, 2006 ya me 2 looking for a AJAX example for fetching data from database. if you find it please let me know. i looking for a example that fills dropdownlist using AJAX in asp.net Link to comment Share on other sites More sharing options...
sbrownii Posted March 4, 2006 Share Posted March 4, 2006 AJAX basically combines existing technologies. The main difference from other javascript tutorials will be the sending and receiving of information to a server-side script. The server-side script, however, will be the same server-side script as any other tutorial will discuss.To write server-side scripts for AJAX you need to know:1) How to write a server-side script2) How to access variables passed to the script (ex: through the query string)3) How to send a reply from a server-side script (same as printing out "Hello World")To implement the fetching of database information you just need to know the above, as well as how to access a database from a server-side script. These things are not unique to AJAX at all.So again, the only new knowledge you should need for AJAX is how to deal with sending and receiving the XML object.Some references fare listed below ASP (Get query string info)http://www.w3schools.com/asp/asp_ref_request.aspADO (Database Access with asp)http://www.w3schools.com/ado/default.aspPHP (Get query string info)http://www.w3schools.com/php/php_forms.aspPHP + MYSQL -> search for tutorialsThere are of course many detailed tutorials of AJAX on the web. I would never recommend you use any ONE source - so go read and practice until you get it.(I only talked about the query string, but the reality is you will be dealing with GET or POST information) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now