The popularity of Ajax is increasing day by day. One of the best example as used by google is google suggest. Here based on the user keywords entered at search box, google returns matching keywords or extension of this words as searched before by users.
Ajax the short form of asynchronous JavaScript and XML we will try to learn by studying some examples here. As you know Ajax is itself not a scripting language so we will be using our script PHP for programming here and other languages in different sections.
Connecting to a JavaScript file
We can keep our JavaScript file used for Ajax inside the main file or can keep in external .js file. Any external JavaScript file can be included inside the main file like this.
<script src='query.js'></script>
Checking Script support
As Ajax depends on client side scripting, we need to check the script support is enabled ( in browser ) or not. Here is the code we can use to display message if scripting is disabled.
<noscript>Your browser does not support scripts, you have to enable it to run this page</noscript>
To work in Ajax we have to create XMLHttp request objects based on type of browser. This object we will use to pass data and collect the data from the server.
We will be using Ajax to send the selection value of first drop down list and then based on this value we will send one more dependent drop box.Read More
Ajax combined with PHP is so interesting, I thought programming with ajax is difiicult but now my mind is opened. So if I can ask, Is there a specific part of which when I am saying I want to learn Ajax, I should start with?
✖
We use cookies to improve your browsing experience. . Learn more