Top Menu

ajax scripts script web 2.0 dhtml javascript

Main Menu

Menu

Scripts

 
Category: Ajax Form Scripts /  Ajax Contact Form

Ajax Contact Form Shake shake shake! Shake shake shake! Shake that bootay. Shake yo bootay… Oh, er.. um. Hi. Eh hem. Sorry, I just got caught up in the moment for a second.

 

 



Shake shake shake! Shake shake shake! Shake that bootay. Shake yo bootay… Oh, er.. um. Hi. Eh hem. Sorry, I just got caught up in the moment for a second. I was in the middle of doing the classic Apple Shake Dance; you know the one that happens when you filled out an incorrect password. Yea, that one.

Anyway, for any of you out there that sat around for what seems to have been ages for me to update my cheesy Ajax Contact Form, I’ve now rebuilt it on top of the YUI Connection Manager (translation for the teenagers (AJAX!)). Oh yea. Check out the demo in action.

However beyond just the simple experience of a normal contact form, I’ve added some animation that mimics some apple shake down magic (like I was talking about) and of course some simple swooshy up-down yoyo type stuff. And although I haven’t packaged it up for you yet, lemme just tell you about it.

Now with as many fields as you want

Of course a huge shortcoming of the last Ajax Contact Form, there was the limitation of the fields that I provided. Well now with this version, you can add as many form fields as you want, and they will indeed all be sent to your inbox by way of array_keys sent via $_POST.

Better “Degradability” support

What that means is that this one has a bit better support for those who don’t have JavaScript enabled. It will simply submit the form like normal and return your success or failure message appropriately.

One thing to particularly note this time (since I got a bagillion emails last time about this) is that you only have to configure your mail settings in one spot. Yepper. Just one spot (as it should be (I don’t know what I was thinking before)).

Beyond that, you could even have multiple forms on the same page. Although untested (on my behalf), I believe that you could still do it with the architecture I’ve built.

Better looking code and extendible

Yea, I must admit; the code looks eons better, and it’s namespaced for your convenience. You really should have no problems with any of it conflicting with your current JavaScripty / PHP goodiness sitting in your web pages.

One thing I’d like to particular draw attention to is my effects object which you may freely add to at your discretion.

 

 

 

demo

Website


Hit: 18484.



 
Write Review

Footer