How to build a simple Ajax

How to create a simple Ajax call to an other PHP file

How it works?

We use one HTML file with a simple JavaScript function wich call an Ajax.

The function sends data to the Ajax and the Ajax returns something else.

In my example the ajax just returns some text.


Full HTML

The whole html file with the form and the JavaScript functions.

2 Responses to “How to build a simple Ajax”

  1. lawrece November 9, 2012 at 3:40 pm #

    Thanks for a simple example!!

    • Rick November 9, 2012 at 3:42 pm #

      Glad it helped 😉

Leave a Reply

Add <code> Some Code </code> by using this tags.