Monthly Archives: September 2022

PHP and AJAX Poll

AJAX Suggest In the AJAX example below we will demonstrate a poll where the web page can get the result without reloading. Do you like PHP and AJAX so far? Top of Form Yes:No: Bottom of Form This example consists of four pages: a simple HTML form a JavaScript a PHP page a text file… Read More »

Category: PHP

PHP and AJAX RSS Reader

An RSS Reader is used to read RSS Feeds RSS allows fast browsing for news and updates AJAX RSS Reader In the AJAX example below we will demonstrate an RSS reader where the content from the RSS is loaded into the webpage without refreshing. Select an RSS News Feed in the Box Below Top of… Read More »

Category: PHP

PHP and AJAX Live Search

AJAX can be used for a more user friendly and interactive search. AJAX Live Search In the AJAX example below we will demonstrate a live search, where the server gets search results while the user types. Live search has many benefits compared to traditional searching: Matching results are shown as you type Results narrow as… Read More »

Category: PHP

PHP and AJAX responseXML Example

AJAX can be used to return database information as XML. AJAX Database as XML Example In the AJAX example below we will demonstrate how a web page can fetch information from a MySQL database, convert it to an XML document, and use it to display information in several different places. This example my seem a… Read More »

Category: PHP

PHP and AJAX MySQL Database Example

AJAX can be used for interactive communication with a database. AJAX Database Example In the AJAX example below we will demonstrate how a web page can fetch information from a MySQL database using AJAX technology. Select a Name in the Box Below Top of Form Select a User: Peter Griffin Lois Griffin Joseph Swanson Glenn… Read More »

Category: PHP

PHP and AJAX XML Example

AJAX can be used for interactive communication with an XML file. AJAX XML Example In the AJAX example below we will demonstrate how a web page can fetch information from an XML file using AJAX technology. Select a CD in the Box Below Top of Form Select a CD: Bob Dylan Bee Gees Cat Stevens… Read More »

Category: PHP

PHP and AJAX Suggest

AJAX Suggest In the AJAX example below we will demonstrate how a web page can communicate with a web server online as a user enters data into a web form. Type a Name in the Box Below Top of Form First Name: Bottom of Form Suggestions: This example consists of three pages: a simple HTML… Read More »

Category: PHP

AJAX XMLHttpRequest

The XMLHttpRequest object makes AJAX possible. The XMLHttpRequest The XMLHttpRequest object is the key to AJAX. It has been available ever since Internet Explorer 5.5 was released in July 2000, but not fully discovered before people started to talk about AJAX and Web 2.0 in 2005. Creating An XMLHttpRequest Object Different browsers use different methods… Read More »

Category: PHP

AJAX Introduction

AJAX = Asynchronous JavaScript And XML AJAX is an acronym for Asynchronous JavaScript And XML. AJAX is not a new programming language, but simply a new technique for creating better, faster, and more interactive web applications. AJAX uses JavaScript to send and receive data between a web browser and a web server. The AJAX technique… Read More »

Category: PHP

PHP SimpleXML

Simple XML handles the most common XML tasks and leaves the rest for other extensions. What is SimpleXML? SimpleXML is new in PHP 5. It is an easy way of getting an element’s attributes and text, if you know the XML document’s layout. Compared to DOM or the Expat parser, SimpleXML just takes a few… Read More »

Category: PHP