>All Tutorials 
Ajax and .NET Ajax and .NET RSS XML
Ajax and ColdFusion Ajax and ColdFusion RSS XML
Ajax and Java Ajax and Java RSS XML
Ajax and PHP Ajax and PHP RSS XML
Ajax and SOA Ajax and SOA RSS XML
Ajax Goodies Ajax Goodies RSS XML
Ajax Tool Ajax Tool RSS XML
Facebook MockAjax Facebook MockAjax RSS XML
Google Web Toolkit Google Web Toolkit RSS XML
JavaScript Framework JavaScript Framework RSS XML
Ruby on Rails Ruby on Rails RSS XML
Technique Introduction Technique Introduction RSS XML
Without XMLHttpRequest Without XMLHttpRequest RSS XML
Yahoo! UI Yahoo! UI RSS XML

AJAX and PHP Part 1 - Dynamic HTML and Images - script server php ajax page html object client

 
Registered tutorials: 501
Registered Users: 38032



Rating: 0 out of 0 votes cast


  
Category: Ajax and PHP

AJAX and PHP Part 1 - Dynamic HTML and Images

Digg this   Post to del.icio.us

Abstract: This tutorial demonstrates a simple script that sends a GET or POST request to a form handling script on a server, then the server script will return a response to the browser XMLHttpRequest JavaScript object.

AJAX is a client/server system. It is a standard that is compatible with all versions of IE browsers, Mozilla/Firefox browsers, the Opera browser and some others. Any browsers that were released in the last few years will work. It uses a JavaScript object commonly referred to as the XMLHttpRequest object within the client-browser HTML page, though there are some variations of this object in MS Internet Explorer browsers. We will demonstrate a simple script that is compatible with all browsers. You use this XMLHttpRequest object to simply send a GET or POST request to a Form handling script on a server, then the server script returns a response to the browser XMLHttpRequest JavaScript object. This text response can be plain text, HTML text with all tags and images or an XML-structured document.
In Part 2 we will cover XML document usage, but here we will cover plain text and full HTML text and images dynamically downloaded using the XMLHttpRequest object. Because the server only needs a script which can handle standard form requests, those being GET or POST, you can thus use Microsoft IIS server, Apache server with PHP or Perl, and Tomcat or any Java-based server. Our examples are of course PHP-based, and have been tested on a Linux Apache/PHP-based server with various browsers.

Read Full Tutorial...



Reviews:

Rate and Review This Site

No reviews yet


Statistic Information About this Resource:


Total Hits: 119
Unique Hits: 98


  Daily Weekly Monthly
  Unique Total Unique Total Unique Total
Average 0.2 0.3 1.2 1.7 4.2 5.2
Current 0 0 1 1 5 8
Previous 0 0 3 5 8 10
Feb 23 1 1 1 2 7 8
Feb 22 0 0 0 0 5 7
Feb 21 0 0 0 0 6 7
Feb 20 0 0 0 0 4 4
Feb 19 0 0 0 0 2 2
Feb 18 0 0 4 5 1 1
Feb 17 1 2 0 0 4 5
Feb 16 0 0 3 4 0 0
Highest 3 3 5 6 9 13


Script Execution Time: 0.14934 | SQL Queries: 10 | Members: 501
Ajax Tutorial Top List - Powered by Aardvark Topsites PHP 5.1.2