Skip to content

imageSRC, a jQuery plugin to add any source type (either dataURL, File object or string) with progress event

License

Notifications You must be signed in to change notification settings

dwoutsourcing/imageSRC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

imageSRC

imageSRC, a jQuery plugin to add any source type (either dataURL, File object or string) with progress event

Sample usage:

$('img')
	.on('progress', function(event, originalEvent, perc, loaded, total) {
		console.log(arguments);
	})
	.on('load', function(event, originalEvent) {
		console.log(arguments);
	})
	.src(file)
;

Where file is either a File instance, a dataURL string or a string value.

Dependencies: filereader jQuery extensions:https://github.com/dwoutsourcing/filereader xhr2 jQuery extensions: https://github.com/dwoutsourcing/xhr2

About

imageSRC, a jQuery plugin to add any source type (either dataURL, File object or string) with progress event

Resources

License

Stars

Watchers

Forks

Packages

No packages published