If you are creating an image uploader, you can provide thumbnail preview of currently selected images in file input field. We don’t need to upload entire file to server to do that. File API is supported by all modern browsers, we just need to take advantage of this feature, it provides us with information about files and allows to access their content.
Today let’s create an Ajax based contact form, that will allow users to send attachments in email message. This tutorial has been updated recently and is based on my recent post here. I’ve added Ajax part to the the example here, it will send form data without refreshing the page.
Floating contact form is ideal solution if you want to let your visitors instantly contact you without having to go to contact page. In this tutorial I’ll be creating a floating contact form using CSS, jQuery and PHP, which will be positioned “fixed” on the right side of the page. The form can be toggle open or closed by clicking on the opener button.