i am dustin diaz

a JavaScriptr...

boosh.

don't worry about it.

An AJAX contact form

Introducing Dustin's Ajax Contact Form

Download Ajax Contact 0.9 download ajax contact form It's a bit over the top... well... for a contact form that is. But yesterday morning I decided that I wanted to have a little fun so I put together an unobtrusive AJAX contact form (works even with JavaScript disabled). Feel free to send me a line. It's a lean mean, contactin' machine :D If you're wondering what the whole package deal is all about, I put together a page of what is inside the zip file as a try-out demo just to show that it does in fact work right out of the box. I even downloaded the file myself as if I'm new to the whole thing ;) See the "testJax" beta release demo Note: If you decide to use this contact form on your site, feel free to let me know where you're using it. I am easily flattered ;) Note Sept 10, 2005 I found a flaw in my own release. No, it's not a security flaw, just a stupid bug I didn't catch first time round. Unfortuntaely I won't be able to re-upload another package until Monday since I'm on vacation working on a hotel computer. If you need to know the fix, here it is typed out: Change the function processPosChange in js/xmlHttp.js to say exactly as follows:

function processPosChange for Ajax Contact Form

function processPosChange() {

  // page loaded 'complete'

  if (pos.readyState == 4) {

    // page is 'OK'

    if (pos.status == 200) {

      if ( grabPosXML('posStatus') == 'NOTOK' ) { 

        alert('There were problems Sending Email.');

      } 

    }

  }

}

All the best!

this is who i am

Hi, my name is Dustin Diaz and I'm an Engineer @ObviousCorp. Previously @Twitter, @Google, and @Yahoo, author of Strobist® Info co-author of JavaScript Design Patterns, co-creator of the Ender JavaScript Framework, a Photographer, and an amateur Mixologist. This is my website. Welcome!

On this site I write about JavaScript. You can also follow along with my open-source work on Github.

This site is optimized and works best in Microsoft Internet Explorer 6.