HTML5: Start safari with GPU debug mode
Monday, May 28th, 2012CA_COLOR_OPAQUE=1 /Applications/Safari.app/Contents/MacOS/Safari
CA_COLOR_OPAQUE=1 /Applications/Safari.app/Contents/MacOS/Safari
Note: assuming jquery
// get the input element
var $fileElement = $("input[type='file']");
var $image = $("img:first");
// on change
$fileElement.on("change",function(){
if (this.files && this.files.length > 0){
var file = this.files[0];
var reader = new FileReader();
reader.onload = function(e) {
$img.attr("src", e.target.result);
}
reader.readAsDataURL(file);
}
});
Set content-disposition: attachement; filename=”…”
if (window.console && window.console.log)
window.console.log('hilight selection count: ' + $obj.size());
Here are some JQuery puglins for creating Modal Dialog Box: