16
May
Posted by navid100 in PHP. Leave a Comment
AJAX can be used for interactive communication with a database.
AJAX database example
The following example will demonstrate how a web page can fetch information from a database with AJAX technology.
Select a person: Peter Griffin Lois Griffin Joseph Swanson Glenn Quagmire
Person info will be listed here.
Example explained – The MySQL Database
The database [...]
Continue reading »
16
May
Posted by navid100 in PHP. Tagged: php, PHP lessons, PHP Tutorial, tutorials, web. Leave a Comment
AJAX can be used for interactive communication with an XML file.
AJAX XML example
The following example will demonstrate how a web page can fetch information from an XML file with AJAX technology.
Select a CD: Bob Dylan Bee Gees Cat Stevens
CD info will be listed here…
Example explained – The HTML page
The [...]
Continue reading »
16
May
Posted by navid100 in PHP. Tagged: php, PHP lessons, PHP Tutorial, tutorials, web. Leave a Comment
AJAX can be used to create more interactive applications.
AJAX Suggest example
The following AJAX example will demonstrate how a web page can communicate with a web server while a user enters data into an HTML form.
Type a name in the input field below:
First name: Suggestions:
Example explained – The HTML page
The HTML page contains a [...]
Continue reading »
16
May
Posted by navid100 in PHP. Tagged: php, PHP lessons, PHP Tutorial, tutorials, web. Leave a Comment
The keystone of AJAX is the XMLHttpRequest object.
AJAX uses the XMLHttpRequest object
To get or send information from/to a database or a file on the server with traditional JavaScript, you will have to make an HTML form, and a user will have to click the “Submit” button to send/get the information, wait for [...]
Continue reading »
16
May
Posted by navid100 in PHP. Tagged: AJAX Introduction, php, PHP and AJAX, PHP lessons, PHP Tutorial, tutorials, web. Leave a Comment
AJAX = Asynchronous JavaScript and XML
AJAX is not a new programming language, but a new technique for creating better, faster, and more interactive web applications.
With AJAX, a JavaScript can communicate directly with the server, with the XMLHttpRequest object. With this object, a JavaScript can trade data with a web server, without reloading the [...]
Continue reading »
16
May
Posted by navid100 in PHP. Tagged: php, PHP lessons, PHP Tutorial, SimpleXML, tutorials, web. Leave a Comment
SimpleXML 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 lines of [...]
Continue reading »
comments