반응형
반응형

HTML5 File Uploads with jQuery

 

http://tutorialzine.com/2011/09/html5-file-upload-jquery-php/

 

 

Demo    Download

 

What are HTML5 File Uploads?

Uploading files using HTML5 is actually a combination of three technologies – the new File Reader API, the also new Drag & Drop API, and the good ol’ AJAX (with the addition of binary data transfer). Here is a description of a HTML5 file upload process:

  1. The user drops one or more files from their file system to the browser window by dragging. Browsers that support the Drag & Drop API will fire an event, which alongside other useful information, contains a list of files that were dropped;
  2. Using the File Reader API, we read the files in the list as binary data, and store them in memory;
  3. We use the new sendAsBinary method of the XMLHttpRequest object, and send the file data to the server.

Sounds complicated? Yes, it could use some optimization. Fortunately, there are jQuery plugins that can do this for us. One of them is Filedrop, which is a wrapper around this functionality, and provides features for limiting maximum file size and specifying callback functions, which is really handy for integrating it into your web applications.

Currently file uploads work only in Firefox and Chrome, but upcoming major versions of the other browsers also include support for it. A simple fallback solution for older browsers would be to display a regular file input dialog, but we won’t be doing this today, as we will be focusing our attention on using HTML5.

So lets get started!

반응형
반응형

전화번호 입력 포멧

 

http://firstopinion.github.io/formatter.js/demos.html

Formatter.js: Conform user input to predefined patterns

formatter.js

 

formatter.js Build Status

   ___                    __  __              _   
  / _/__  ______ _  ___ _/ /_/ /____ ____    (_)__
 / _/ _ \/ __/  ' \/ _ `/ __/ __/ -_) __/   / (_-<
/_/ \___/_/ /_/_/_/\_,_/\__/\__/\__/_/ (_)_/ /___/
                                        |___/     

Format user input to match a specified pattern

Demos/Examples

view demo

Why?

Sometimes it is useful to format user input as they type. Existing libraries lacked proper functionality / flexibility. Formatter was built from the ground up with no dependencies. There is however a jquery wrapper version for quick use.

On Bower

bower install formatter

Usage

Vanilla Javascript

  • uncompressed: formatter.js
  • compressed: formatter.min.js

new Formatter(el, opts)

var formatted = new Formatter(document.getElementById('credit-input'), {
  'pattern': '{{999}}-{{999}}-{{999}}-{{9999}}',
  'persistent': true
});

Jquery

  • uncompressed: jquery.formatter.js
  • compressed: jquery.formatter.min.js

$(selector).formatter(opts)

$('#credit-input').formatter({
  'pattern': '{{999}}-{{999}}-{{999}}-{{9999}}',
  'persistent': true
});

Opts

  • pattern (required): String representing the pattern of your formatted input. User input areas begin with {{ and end with }}. For example, a phone number may be represented: ({{999}}) {{999}}-{{999}}. You can specify numbers, letters, or numbers and letters.
    • 9: [0-9]
    • a: [A-Za-z]
    • *: [A-Za-z0-9]
  • persistent: [False] Boolean representing if the formatted characters are always visible (persistent), or if they appear as you type.

 

 

  •  
반응형
반응형
jquery 실행시 jquery~~.min.map이 없다고 에러날때.

 

 

http://jquery.com/download/ 에 가서 버전에 맞는 min.map 파일을 다운 받아라.

 

 

 

 

 

반응형
반응형

Riot.js: A tiny client-side MVP framework

riot

 

The 1kb client side MVP framework

Riot is an incredibly fast, powerful yet tiny client side framework for building large scale web applications. Despite the small size all the building blocks are there: a template engine, router, event library and a strict MVP pattern to keep things organized. Your views are automatically updated when the underlying model changes.

Current frameworks base their existence on false assumptions.

  1. There's a big mass of common problems
  2. MVC (or MVP) requires a framework
  3. jQuery leads to spaghetti

All of these statements are wrong.

Current applications could be faster, simpler and smaller. They could be maintained with less people, less knowledge, and less worries.

Riot is a manifesto for vanilla JavaScript and jQuery.

Release December 2013 • Get notified on Facebook

 

https://moot.it/blog/technology/riotjs-the-1kb-mvp-framework.html

 

 

반응형
반응형

Useful jQuery Tutorials For Web Developers And Designers

 

 

Colorful Sliders With jQuery & CSS3

In this tutorial we are using jQuery and the new transformation features brought by CSS3 to create a three dimensional dynamic slider effect.


usefuljquerytutorial

Animated Form Switching with jQuery

In this tutorial we will create a simple animated form switch with three very common forms. The idea is not to leave the page when the user goes to another form but instead make the new form appear within the same container, expanding or contracting to the dimensions of the new form.


usefuljquerytutorial

How to Make Custom Flat Styled Google Maps with jQuery and Flat UI

In this tutorial we will show you how to make custom flat styled google map with jquery and flat UI.


usefuljquerytutorial

Password strength verification with jQuery

In this tutorial, we’ll construct a form that gives the user live feedback as to whether their password has sufficiently met the complexity requirements we will establish.


usefuljquerytutorial

Vertical Scroll Menu with jQuery Tutorial

In this tutorial we will learn vertical scroll menu with jquery tutorial.


usefuljquerytutorial

Shiny Knob Control with jQuery and CSS3

In this tutorial we will be writing a jQuery plugin for creating a shiny knob control. Aptly named knobKnob, this plugin will use CSS3 transformations and jQuery’s new event handling methods to give visitors of your website a new way of interactively choosing a value from a range.


usefuljquerytutorial

Make Pretty Charts For Your App with jQuery and xCharts

In this tutorial you will learn about pretty charts for your app with jquery and xcharts.


usefuljquerytutorial

How to Create Login Form with CSS3 and jQuery

In this tutorial we will learn how to create login form with CSS3 and jQuery.


usefuljquerytutorial

A Simple Movie Search App w/ jQuery UI

In this tutorial, we are using jQuery UI’s autocomplete widget, to build a simple AJAX movie search form. The script is going to use TheMovieDatabase.org‘s free API, to provide auto suggestions against a vast database of movie titles.


usefuljquerytutorial

In this tutorial you will learn beautiful slide out navigation a CSS and jQuery.


usefuljquerytutorial

Frame Warp jQuery Plugin

There is the option of using one of the numerous lightbox plugins to do this, but the plugin we will be creating in this tutorial has a lot of advantages over a generic lightbox script.


usefuljquerytutorial

How to Create a Responsive Image Slider in jQuery and CSS3

In this tutorial we will code a responsive image slider from the Impressionist UI. We will code it using the FlexSlider plugin for the functionality and style it using CSS3.


usefuljquerytutorial

Animated Content Menu with jQuery

In this we will create a slick animated content menu with jQuery for a restaurant theme. The menu items will be animated and when clicked, a content area with more information will appear.


usefuljquerytutorial



Read more: http://www.smashingapps.com/2013/11/01/useful-jquery-tutorials-for-web-developers-and-designers.html#ixzz2jdeQOSvJ

반응형
반응형

http://thedesignblitz.com/best-jquery-plugins-of-the-week-10/

Best jQuery Plugins of the Week [20th October-26th October]

Best jQuery Plugins of the Week

1. Scroll effect a la Google

Developed by Eric Wennerberg this is a cool tool for Google+ users. If you have used the Google+ app for Android you probably have noticed the cool scroll effect. With this jQuery Plugin you will be able to recreate it with ease.

2013-10-17 22_08_13-Smooth scrolling effect á la Google Demo - Eric Wennerberg

Download | Demo

2. PaginateMyTable

Developed by Andrey Gubal PaginateMyTable is a jQuery plugin for HTML table pagination.

2013-10-17 21_52_08-PaginateMyTable - paginate Html table easily with jQueryDownload | Demo

3. jQuery List Sorter

Developed by Aman Dogra, jQuery List Sorter as the name says is for sorting lists that behave like tables. Its similar to the jquery tablesorter plugin.

5555

Download |Demo

4. simulateTouch

SimulateTouch by Martin Krause enhance your automated tests by simulate touches and gestures.

Download

5. jQuery Keymap

Create your own keymap to display the keybinings of your software with jQuery.

5453

Download | Demo

6. Flat jQuery Piechart

Developed by Eric Wennerberg Flat jQuery Piechart jQuery plugin is for implementing a pure CSS piechart. This plugin is a part of Flatmin Responsive Framework.

yyyy

Download | Demo

7. Bootstrap Image Gallery

Developed by Sebastian Tschan Bootstrap Image Gallery is an extension to blueimp Gallery, a touch-enabled, responsive and customizable image and video gallery.

2013-10-17 21_56_26-Bootstrap Image Gallery

Download | Demo

8. jQuery Selectric

Devloped by Leonardo Santos Selectric is a latest jQuery plugin that helps users stylize and manipulate HTML selects.

2013-10-17 21_31_57-jQuery Selectric

Download Demo

9. sevenSeg

Developed by Brandon L White, sevenSeg is a jQueryUI plugin for creating vector-based (SVG) seven-segment displays. Bindings for Knockout included.

2013-10-17 21_39_54-sevenSeg.js

Download | Demo

10. jQuery Validamesta

Developed by Enrique Urzua Garcia jQuery Validamesta plugin is for validation targered to be used more with tag attributes

Download

11. Ezdz [izy-dizy]

Developed by Jay Salvat jQuery plugin to turn standard input type file into a nice drag and drop zone with validators and previews. This plugin uses HTML5 File, Drag and Drop API so it works properly on modern browsers.

2013-10-17 21_46_26-CodePen - A Pen by jaysalvat

Download | Demo

12. jQuery Expandify plugin

Developed by Matthew Holt, Expandify is a lightweight plugin that can be used to expand and contract textareas according to the height of user’s input up to a maximum number of rows.

Download | Demo

 

반응형

+ Recent posts