Slashdot

Pages

Friday, June 4, 2010

Dynamic Content-Ajax and PHP

AJAX = Asynchronous JavaScript and XML.

AJAX is a technique for creating fast and dynamic web pages.

AJAX is a very powerful system which enables dynamic, constantly changing content on a page without refreshing the page.

AJAX allows web pages to be updated asynchronously by exchanging small amounts of data with the server behind the scenes

This article is show how to access dynamic data through ajax and php

Simple Example Display books details through mouseover events

Ajaxscript :ajaxfunctions.js

  • Create an XMLHttpRequest object
  • Create the function to be executed when the server response is ready
  • Send the request off to a file on the server
  • Notice that a parameter is added to the URL
Database Connection:Connection.php

This is used to create database connection

Main Page: bookdetsils.php

This Page is Used to display and access dynamic content

Dynamic Page: action.php

This page is used to retrieve data based on ajax call

No comments:

Post a Comment