Posts Tagged html4

Coming Soon - Premium WordPress Theme Giveaway To All Our Email Subscribers

Creating a stylish HTML5 & AJAX Contact Form

It has taken more time than I expected to complete this tutorial, because I kept on adding more and more features to our contact form.

Starting with the idea of just a simple HTML5 contact form, later thought of adding AJAX form submission and later came the idea of supporting JavaScript disabled browsers and much more.

ultimate contact form which can be seamlessly integrated to any website and works totally fine in any browser providing a cool user interface.

What is HTML5 ? Can we use it in our project ?

HTML5 is the next generation of HTML.

HTML5 supports all the form controls from HTML 4, but it also includes new input controls. Some of these are long-overdue additions like sliders ,date pickers and color pickers; others are more subtle.

For example, the email input type looks just like a text box, but mobile browsers will customize their onscreen keyboard to make it easier to type email addresses. Older browsers that don’t support the email input type will treat it as a regular text field, and the form still works with no markup changes or scripting hacks. This means we can create a more improved Forms for our website, even if some of our visitors are stuck on IE 6.

In our contact form we are going to use input controls namely email ,required, url and phone. Yeah That’s it, but its good enough to make a really good contact form.

What is AJAX ?

AJAX can create a highly responsive web interface and increase the user experience.Using AJAX the form can be submitted without Page reload which makes our form much more friendly.

Browser Support

The CSS styling has been coded in such a way that the page looks exactly same in all popular web browsers.Although the form uses AJAX form submission, if JavaScript has been disabled in a web browser then a normal contact form will be rendered.

To sum up this is an ultimate contact form which can be seamlessly integrated to any web

Creating Stylish HTML5 and AJAX Contact Form tutorial

site and works totally fine in any browser providing a cool user interface.

Including the code on this page would make the very post very long, so please download the source code and refer to it.The code has been heavily commented and would pose no difficulty to use it in your website.

Installation Instructions

After downloading the Source code, open config.phpin a text editor and enter your email address

<?php
$to = "your_email_address";//enter your email address
?>

Click to Download Source Code of stylish HTML5 ans AJAX contact form

Download

Click to view Live Demo of stylish HTML5 and AJAX contact form

Live Demo

Next tutorial will be back with an interesting tutorial, meanwhile keep updated with all our tutorials by :

If you have any problems using the downloaded files, then leave a comment below.

Want more improvisations on this script, or want to request a new tutorial, then please Contact me right-away.

I promise to respond to everyone who contacts asking for support or new tutorials.

VN:F [1.9.22_1171]
Rating: 5.0/5 (4 votes cast)

, , , , , , , , , , , , , , , , , , , , , ,

2 Comments

Top 10 Most Popular File Upload Scripts – Live Demo and Free Download(Part 1)


A File upload script is essential for every website and there are a plenty of such ready file upload scripts available on the web, but with their own pros and cons, So I thought that It would be a great idea creating a post on the  top ten file upload scripts ever and would serve as a very useful resource for all webmasters.For every script I have listed their advantages and disadvantages, so it would be easy for you to choose the right one. Below is my list of  top ten File upload Scripts :

Since I want to give a detailed review about all the ten scripts i will be only revealing the top five Upload scripts in this post and in my next post I will be revealing the next five upload scripts


1.Plupload


Review

For those who know some of these scripts might be wondering how Plupload came on the first position in the list rather than SWFupload.What really brings Plupload to the top of this list is its support for HTML5 Gears, Silverlight, Flash, BrowserPlus. If the user’s browser doesn’t support any of these then a normal HTML4  file upload is implemented moreover it-seems to be very stable.

Description from official website

Allows you to upload files using HTML5 Gears, Silverlight, Flash, BrowserPlus or normal forms, providing some unique features such as upload progress, image resizing and chunked uploads.Plupload is a highly usable upload handler for your Content Management Systems or similar. Plupload is currently separated into a Core API and a jQuery upload queue widget this enables you to either use it out of the box or write your own custom implementation.

Features

Feature Flash Gears HTML 5 Silverlight BrowserPlus HTML 4
Chunking
Drag/Drop *
PNG Resize *
JPEG Resize
Type filtering  *
Stream upload
Multipart upload  *
File size restriction
Upload progress

Pros and Cons

ADVANTAGES DISADVANTAGES
Upload files using HTML5 Gears, Silverlight, Flash, BrowserPlus or normal forms Lack of support, Forum is not very active
unique features such as upload progress, image resizing and chunked uploads.
Highly usable and stable upload handler with custom implementation

Live Demo and Download

Download Source Code of Plupload

Download

Click to view Live Demo of Plupload

Live Demo


2.SWFUpload


Review

SWFUpload logo

SWFUpload uses both JavaScript and Flash library to provide a great upload experience.It is exactly similar to the attachment uploading Gmail which is very popular.It is a great upload script with almost every feature we want except for one main disadvantage that it uses Flash library.

Description from official website

SWFUpload is a small JavaScript/Flash library to get the best of both worlds. It features the great upload capabilities of Flash and the accessibility and ease of HTML/CSS.

Features

Features
Upload multiple files at once by ctrl/shift-selecting in dialog
Javascript callbacks on all events
Get file information before upload starts
Style upload elements with XHTML and css
Display information while files are uploading using HTML
No page reloads necessary
Works on all platforms/browsers that has Flash support.
Degrades gracefully to normal HTML upload form if Flash or JavaScript is unavailable
Control filesize before upload starts
Only display chosen file types in dialog
Queue uploads, remove/add files before starting upload

Pros and Cons

ADVANTAGES DISADVANTAGES
Upload multiple files at once and JavaScript callbacks Requires Flash and does not work in browsers with flash not been installed
Exactly similar to Plupload Customization becomes difficult without proper knowledge of javascript
Unlike Plupload, the forums are very active.

Live Demo and Download

Download Source Code of SWFUpload

Download

Click to view Live Demo of SWFUpload

Live Demo

Go to next page >>

VN:F [1.9.22_1171]
Rating: 5.0/5 (2 votes cast)

, , , , , , , , , , , , , , , , ,

2 Comments