html5

How do I generate a content type string with codecs for a media file?

Is there a command-line tool that sniffs video/audio files and generates detailed content-type strings for them, in the format specified in the HTML5 spec and in RFC4281? I want to use this serverside to avoid recoding of uploaded MP4 and OGG files whenever the encoding is supported by HTML5 browsers. Video hosting sites have opted to r...

HTML Table with Fixed header, Resizable Columns and can size to less than the content width

Hi. I'd like to include a table in my web application thing that has a fixed, styled, header AND resizable columns AND to be able to resize the columns (both by when the browser is resized as the table is 100% and by the user resizing the columns) to less than the content and the content get truncated (hidden). Also somehow I'd like th...

Limit of localstorage on iPhone?

I'm wondering what's the limit of localstorage HTML 5 on iPhone? I read that it was like 5 Mb, but I'm surprised is so little. Any ideas? ...

Using Database storage for uses other than offline apps

I've been looking into offline database storage with HTML5 and the built in Sqlite Db. I think it has a potential for things other than just storing data for offline apps. What I'm interested in, is hearing about potential uses of the database for storing things other than offline web page content. What has anyone in the commnity been u...

drawImage on canvas has weird aspect ratio in firefox and other problems

I am running firefox 3.5.6. I want to display an image on a canvas and draw a couple lines on it. It needs to display properly in firefox and internet explorer (using excanvas). Here is what I am getting: The top image is what I see in IE8, the bottom is what I see in firefox. IE seems to be a bit messed up as far as the canvas is...

Is valid HTML5 OK to use now?

I've been reading about HTML5 and would like to start using some of it, particularly datasets as I've found an interesting looking jQuery plugin that I can start using... http://www.barklund.org/blog/2009/08/28/html-5-datasets/ Now, I understand that older browsers like IE6 may not like having extra attributes in there and may not know...

Sound effects in JavaScript / HTML5

I'm using HTML5 for its most noblest purpose: games, of course! The obstacle I've run into now is how to play sound effects. The game is a port of an old Macintosh game, and because of it's age, the requirements are few in number: Play and mix multiple sounds, Play the same sample multiple times, possibly overlapping playbacks Interru...

Securing songs streamed from HTML 5

Hi all, I'm looking to build a jukebox and I am wondering how one would secure songs that are in <audio> tags with HTML 5. I don't want people to be able to download the song, but I'd like to stream it via those <audio> tags. Any suggestions? ...

Is there a Java-applet implementation of HTML5 WebSockets?

Is there a Java-applet implementation of HTML5 WebSockets? I'd like to use WebSockets for a new project, and provide a backward compatible implementation of WebSockets (for all current non-dev browsers) using Java (or maybe Flash). I only want to write and maintain WebSockets on the server-side. I only want to have to deal with the We...

HTML5 Video tag with no source?

Is there any defined behaviour if I have an HTML5 VIDEO tag but include neither a SRC attribute nor SOURCE tags inside the element? Would this still be valid HTML, and if so, what should the (HTML5 capable) browser do - ignore the element or display it's contents? ...

HTML 5: Is it <br> <br/> or <br />?

I've tried checking other answers, but I'm still confused--especially after seeing W3schools HTML 5 reference. I thought HTML 4.01 was supposed to "allow" single-tags to just be <img> and <br>. Then XHTML came along with <img /> and <br /> (where someone said that the space is there for older browsers). Now I'm wondering how I'm suppos...

Programatically use RGBa values in fillStyle in <canvas> ?

Hi, Posting for the first time here, so if I'm breaking any rules or guidlines here then please let me know gently and I'll keep it in mind for next time... Im learning programming in <canvas>, and I wanted to do a simple thing in it. I wanted to set the RGBa value of the rectangle I was drawing using some variable. for example, var...

How to use -webkit-appearance: searchfield-results-decoration?

Happy holidays, all. I'll probably feel very silly when I get the answer to this, but I'd like to know how to use the CSS "-webkit-appearance: searchfield-results-decoration" rule to draw a small magnifying glass inside a search box. I'd like to create a search box like the one in the upper right corner of apple.com. It should have roun...

How do I get YouTube's embed code validate against HTML5 ?

My page validated error free against HTML5 until I added YouTube's embed code. # Line 140, Column 132: Stray end tag param. …O30JM&amp;hl=en_US&amp;fs=1"></param><param name="allowFullScreen" value="tru # Error Line 140, Column 183: Stray end tag param. …llowFullScreen" value="true"></param><param name="allowscriptaccess" val...

HTML5 Large canvas

I've noticed that when dynamically creating a large canvas (6400x6400) that quite alot of the time nothing will be drawn on it, and when setting the canvas to a small size it works 100% of the time, however as I don't know any better, I have no other choice than to try and get the large canvas working correctly. thisObj.oMapCanvas ...

current transform being applied by canvas

How can I determine the current transform that's being applied by an html5 canvas. It seems that it only supports two methods for dealing with transforms "transform", "setTransform" but I can't seem to discover the results of applying the transforms. Short of tracking them all myself and duplicating the the matrix mathematics that it m...

Will html5 websockets be crippled by firewalls?

I'm extremely excited about html5's websockets spec but I have a concern. These days everyone is operating off of some network, with routers (wired/wireless) that have built in firewalls, windows has a built in firewall too. With that in mind when the server attempts to connect back to the browser that started the websocket handshake...

Multiple file uploader in HTML5 -- browser support?

I read that the HTML5 spec introduced the ability to select multiple files in an upload form. What browsers currently support this? Does Adobe AIR support it? Bonus question: Is there a JavaScript library that takes advantage of this functionality? ...

How does HTML 5 differ from HTML 4?

I have seen HTML 5 coming up in near future. How does it differ from HTML 4, which has been 'in' for so many years in web development? thanks ...

JSON, Javascript & Dynamically Created & Populated Tables

I've got the following JSON structure that defines a table and it's data. var arrTable = [{"table": "tblConfig", "def": [{"column": "Property", "type": "TEXT NOT NULL"}, {"column": "Value", "type": "TEXT NOT NULL"}], "data": [{"Property": "VersionNumber", "Value": "1.0"}, {"Property": "ReleaseDate", "Value...