Category Archives: Html5

Phonegap/Cordova App Shrink too small on high resolution device like Samsung Galaxy S4

Questions: My Phonegap/Cordova app looks fine with the setting below, on devices like iPhone 4/4S (640×960), HTC Desire HD (480×800), Samsung Galaxy Note etc. <meta name=”viewport” content=”user-scalable=no, initial-scale=0.75, maximum-scale=1, minimum-scale=0.75, width=device-width, height=device-height, target-densitydpi=device-dpi” /> But it shrinks too small on ultra high resolution devices like Samsung Galaxy S4 (1080×1920, 5.0 inches ~441 ppi pixel density),… Read More »

Best way to create an <a> link with empty href [duplicate]

Questions: This question already has an answer here: Which “href” value should I use for JavaScript links, “#” or “javascript:void(0)”? 51 answers Answers: You can use javascript:void(0) <a id=”ServerSort” href=”javascript:void(0)”> you don’t need style=”text-decoration:underline” as commented by King King by jQuery you can do it by event.preventDefault() Stop the default action of the event .… Read More »

filereader api on big files

Questions: My file reader api code has been working good so far until one day I got a 280MB txt file from one of my client. Page just crashes straight up in Chrome and in Firefox nothing happens. // create new reader object var fileReader = new FileReader(); // read the file as text fileReader.readAsText(… Read More »

Ember.js + HTML5 drag and drop shopping cart demo

Questions: In short, I am trying to reproduce a basic version of jquery-ui’s shopping cart demo: http://jqueryui.com/demos/droppable/shopping-cart.html with ember.js and HTML5 native drag n drop. After previously trying to implement drag and drop with ember + jquery-ui and having difficulty using this solution: http://jsfiddle.net/Wu2cu/2/, I saw pangratz’s HTML5 solution: http://jsfiddle.net/pangratz666/DYnNH/ and decided to give it… Read More »

HTML 5 w3c validation

Questions: I validated my website using validator.w3.org It reported the following error: Line 5, Column 67: Bad value X-UA-Compatible for attribute http-equiv on element meta. <meta http-equiv=”X-UA-Compatible” content=”IE=edge,chrome=1″ > If I don’t include that META tag, than all IE9 visitors will see my website in Quirks mode, and I want to prevent that. Any help… Read More »

Is it possible to play shoutcast internet radio streams with html5?

Questions: Is it possible to play shoutcast (or some) internet radio streams with html5? So I have next code: <html> <body> <audio src=”http://shoutcast.internet-radio.org.uk:10272/” /> </body> </html> I save it as HTML page and start my browser (Google chrome 4.0.249.78, safary or FF) But it does not play/work!( And it does not play with any other… Read More »

Create thumbnail from video file via file input

Questions: I am attempting to create a thumbnail preview from a video file (mp4,3gp) from a form input type=’file’. Many have said that this can be done server side only. I find this hard to believe since I just recently came across this Fiddle using HTML5 Canvas and Javascript. Thumbnail Fiddle The only problem is… Read More »