liborjelinek / contactable

a jquery and PHP slide out contact form

Home Page:http://theodin.co.uk/blog/ajax/contactable-jquery-plugin.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Contactable jQuery plugin.

GitHub : https://github.com/philipbeel/Contactable
Demo : http://plugins.theodin.co.uk/jquery/contactable.1.5/
Website : http://theodin.co.uk
Email : contact@theodin.co.uk
Twitter : @philipbeel

Descrpition

Contactable is a jQuery plugin that enables users to incorporate a feature rich contact form into any website running PHP or Java.

Usage

Call in the jQuery framework and jquery.contactable.js in your webpage

<script type="text/javascript" src="jquery.contactable.js"></script>

Create an element in your HTML that you want the contact form to be generated into.

<div id="contactable"></div>

Initiate the contactable plugin when the page loads

$('#contactable').contactable({
	subject: 'A Feeback Message'
});

IMPORTANT

Open the mail.php file and look for CHANGE@YOURADDRESS.COM and replace with the email address you wish to receive contact messages to.

For Java web applications configure JNDI resource for javax.mail.Session for your servlet container (example for Tomcat included), customize Mail.java, , and change CHANGE@YOURADDRESS.COM.

Plugin parameters

You can extend the contactables configuration with some of the following configuration

subject: {String} // Email subject heading
url: {String} // URL path of mail.php file must be absolute
name: {String} // Name label
email: {String} // Email label
dropdownTitle: {String} // Dropdown label, if empty no dropdown is displayed
dropdownOptions: {Array} // Select options for dropdown
message: {String} // Message label
submit: {String} // Label text for the submit button
recievedMsg: {String} // Message successfully wording
notRecievedMsg: {String} // Message failed wording
disclaimer: {String} // Text to display at the bottom of the form
hideOnSubmit: {Boolean} // hide the form after submitting it

About

a jquery and PHP slide out contact form

http://theodin.co.uk/blog/ajax/contactable-jquery-plugin.html


Languages

Language:JavaScript 41.8%Language:CSS 32.6%Language:Java 19.7%Language:PHP 5.8%