Contactable - jQuery Plugin

11 January 2010 Monday

This application was viewed 1580 times




Contactable – A jQuery Plugin

Contactable is a jQuery plugin designed to make contact/feedback forms simpler and more accessible. This plugin will enable you to create a contact form on any page of a site with minimal effort. If you have ever seen the feedback forms provided by kamypyle you will be familiar with the technique they use, however contactable makes this process even simpler by overlaying the content onto your page quickly and easily with a slide effect and inline validation.

Usage

Contactable takes care of a lot of issues for you, however the plugin does have a dependency on jQuerys validate plugin, which is included in the download. To start simply create a div with an ID:

<div id="contact">
</div>

You will need to call in the jquery framework as well as the validator to make this plugin work:

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js"></script>
<script type="text/javascript" src="jquery.validate.pack.js"></script>
<script type="text/javascript" src="jquery.contactable.packed.js"></script>

To initiate the contactable plugin simply call the plugin on the ID of your div. In the download you will also see a mail.php file. It is important that you put this at the top level of the of your server as to make the ajax request successfully:

$(function(){
 $(´#contact´).contactable({
  recipient: ´philip.beel@holidayextras.com´,
  subject: ´A Feeback Message´
 });
});

Options for contactable

There are a lot of added parameters for contactable, you can adjust pretty much everything on the form in terms of how it displays. The most important of these is the recipient which will sets who receives the message.

name: ´Name´,
 email: ´Email´,
 message : ´Message´,
 recipient : ´yourAddress@yoursite.co.uk´,
 subject : ´A contactable message´,
 recievedMsg : ´Thankyou for your message´,
 notRecievedMsg : ´Sorry, your message could not be sent, try again later´,
 disclaimer: ´Please feel free to get in touch, we value your feedback´

Demo

You can see the contactable plugin in action here. You can find all the styling included within the download. Thanks for checking it out, and please shout if you find any bugs or can think of ways to improve the plugin.

Tags: forms, feedback, jquery, contact,


Contactable - jQuery PluginBookmark and Share

You write your thoughts

Please login to post comments here from the right corner.

your add
icon free icon icon set vector icon free catalog catalog template jquery news ticker widget tools tutorial php slider video youtube effects menu thumbnail forms facebook zoom image combo multiselect modal polaroid gallery expand code feedback contact navigation slider tagcloud Skateboard psd templates files badges subscribe panel login temlate file free office holland free template tabs prototype css scriptaculous opacity moo autocomplete wordpress themes design theme button images photoshop fonts font nav pdf logo style high javascript pretty photo jqery lightbox Themes Blog popular blog desing joomla xhtml brushes hair footer admin mootols slide show blackbox new download class first plugin upload browse Page effect modalbox web application urlitooltips sliding boxes captions flatchat chat ajax messaging browser hoverlightbox CSS Dev General Javascript PHP SQL search avatar vector Drupal Joomla Oscommerce javaScript phototype manager ajaxplorer flash xml rotator bookmarking pageflip slideshow poll text component script mediaplayer imagegallery pictograms car poster player mp3 radio onlineradio navigations drop-down collection brush tree textures paper pop-up bumpbox web2.0 iphone film frame twitter page fan mail delete dynamic calender form handbook city social paint timeline clock connect bar sharing accordion quotes ticker photo-effects background 3D media player graphic rss leaf green glossy bubble icon comic clean cool web 2.0 png actionscript ietter rotating Menu animated textured site masking pasword app layer sponge bob popup bubble tooltips horizontal prototip tooltip pack charachters comics blog action icon.psd flavour navi tango gradients istanbul mixed css3 sleek animations program html5 website Layer styles ultimate candy Media icons dropdown snow icon innerfade hover sub tag