AJAX form submission

Background. My only previous publicly available element of AJAX scripting was the Flickr feed on the frontpage of this site. It’s really simple, just returning the results of a PHP script. To demonstrate I know more than that I’ve taken things a little further and created a contact form.

AJAX POST. The present script is on my Me page and it doesn’t actually send me an email yet, so feel free to click away at it. As I mentioned it’s only one step along, form data is submitted, operation preformed on the server and the screen is updated with the result.

Slight Disclaimer. Since it was a quick job to demonstrate some AJAX there isn’t the necessary backend code to cover for a lack of Javascript, or validation against empty fields.

Filed under: JavaScript