html5

Text wrap in a <canvas> element

I am trying to add text on an image using the <canvas> element. First the image is drawn and on the image the text is drawn. So far so good. But where I am facing a problem is that if the text is too long, it gets cut off in the start and end by the canvas. I don't plan to resize the canvas, but I was wondering how to wrap the long text...

Need a way for users to enter data while offline and re-submit it when back online

As part of a larger webapp, I want to build functionality that allows a user to enter data while offline -- and then send that data back to my site when they have a connection again The parts that, to me, are missing ar Saving a certain set of data in their browser Saving a form that allows them to enter data using form from step#2 to...

How can I set MT5 to use figure and figcaption

How can I set Movable Type (MT5) to use figure & figcaption for images inserted in an entry. I know I can edit the HTML myself, but there is one other person who will be adding content and I'll need to keep the work flow as simple as possible. Michael ...

which ASP.NET hosting site allows listening on different ports than 80 and uses .NET 4?

I'm trying to take advantage of HTML 5 web sockets in .NET and the easiest way appears to be something like what this guy does. I've already tested this myself and it works great, but there are a few problems if I try to deploy this to my hosting site (discountasp.net). Basically, I am not allowed to open up a port on 8080 and listen o...

HTML5 audio with PHP script does not work on iPad/Iphone

Ok, I'm trying to play an HTML audio code on iPad but does not work. I created one PHP script to send to the MP3 request to the HTML5 audio code mp3_file_player.php?n=mp3file.mp3 The player is here: http://www.avault.com/news/podcast-news/john-romero-podcast-episode-80/ You will see that works on every HTML5 supported browser eve...

html5 / flash video player

I'm working on a website in which I'm going to embed some videos. Are there any good open source html5 / flash video players around so I can avoid having to code up one of my own from scratch? EDIT: Note that I'm going to have a very small number of videos, probably no more than 5 or so, so format maintenance isn't really a problem. ...

Css3 Transition on background transparent not working in Chrome 5

I`m trying to create an animation using CSS3 transition. The animation is a gradient background that should change his color (rgba). I used the webkit tag for the gradient and it`s working in Chrome 5.0.375.55. Sample code (something like this): .tag { -webkit-transition: all 1.0s ease-in-out; background-image: -webkit-gradient(radi...

JavaScript Camera API Android (Froyo)

I am trying to access the JavaScript Camera API via the Android browser as demo'd at Google IO on Froyo (yes, I have Froyo on my Nexus1). Since there is no documentation, I am going by the W3C specs. But, I am unable to access the navigator.device object and unable to access navigator.camera either - both return undefined. Can anyone ...

HTML5 <video> callbacks?

I'm working on a site for a client and they're insistent on using HTML5's video tag as the delivery method for some of their video content. I currently have it up and running with a little help from http://videojs.com/ to handle the Internet Explorer Flash fallback. One thing they've asked me to do is, after the videos finish playing (t...

HTML5 offline video caching in mobile safari

Sorry if this gets posted twice, but Safari crashed while posting the first version, and I don't see it in my profile. Anyway I can't seem to get Safari on the iPhone or iPad to offline cache videos. Everything else gets cached just fine when I go offline. The video file is obviously in the manifest, but I just get the broken arrow. ...

Where can I find sample XHTML5 source codes?

Where can I find sample *X*HTML 5 pages? I mainly want to know if it is possible to mix and match XHTML 5 with other XML languages just like XHTML 1 or not. For example is something like this valid in XHTML 5? <!DOCTYPE html PUBLIC "WHAT SHOULD BE HERE?" "WHAT SHOULD BE HERE?"> <html xmlns="WHAT SHOULD BE HERE?" xmlns:u...

Is there a way to capture HTML5 video events on the iPhone?

I have my standard video tag which is playing fine in Chrome; <video width="x" height="y" src="video.mp4"></video> The video itself plays fine on the iPhone, however, is there no way to listen for events? Any kind of event? I'd like to use the 'ended' event, but even a 'click' or 'play' would be helpful! The standard video.addEventL...

HTML5 video problem

hey guys, i wonder what i'm doing wrong? <video id="movie" width="320" height="240" preload controls> <source src="pr6.mp4" type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"' /> <source src="pr6.webm" type='video/webm; codecs="vp8, vorbis"' /> <source src="pr6.ogv" type='video/ogg; codecs="theora, vorbis"' /> </video> this peace ...

jquery: animating html5 video element?

is it possible to animate a html5 video element <div id="cont"> <video id="movie" width="320" height="240" preload controls> <source src="pr6.ogv" type='video/ogg; codecs="theora, vorbis"'> <source src="pr6.mp4" type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"'> <source src="pr6.webm" type='video/webm; codecs="vp8,...

XHTML 5 Prologue vs XHTML 1 Prologue

Are there any differences between prologues of XHTML 1 and XHTML 5? Is it possible to find out whether a document is XHTML 1 or XHTML 5 simply by looking at its prologue? ...

HTML5 Database Transactions

i am wondering abt the example W3C Offline Web Apps the example function renderNotes() { db.transaction(function(tx) { tx.executeSql('CREATE TABLE IF NOT EXISTS Notes(title TEXT, body TEXT)', []); tx.executeSql(‘SELECT * FROM Notes’, [], function(tx, rs) { for(var i = 0; i < rs.rows.length; i++) { renderNo...

Degradation issues for HTML5 semantic tags (article, footer, header)

How well do the new layout tags in HTML5 degrade? What are the hazards in using them? (I'm not talking about <video>--I've seen specific fallback code for it). Specifically, in the case of something like <html> <head></head> <body> <header> <h1>Talking Dogs</h1> <b><p>Humans aren't the only talkers!</p></b> </header> <article> <p>Ever...

rails server side to upload file from jquery-html5-upload?

I'm trying to use this plugin: jquery-html5-upload http://plugins.jquery.com/project/jquery-html5-upload and it's working but i don't know how to get the file and save it on the server on the rails action. in my rails log i just get this: ... 7?\021\b\000\034\000%\003\001\021\000\002\021\001\003\021\001\377?\e\000\000\001\005\001\001\...

html5 offline storage for Windows Mobile 6.1 or an alternative?

I understand that there are no browsers currently which support offline storage for mobile 6.1. I am trying to find a web form based solution avoiding the loss of data when my device has no connectivity. Have ruled out Gears and would like to avoid a win forms application as the forms change so often. Are there any other approaches tha...

Is there a way to localize input type="date" in HTML5

I know that at the time of this writing only Opera supports a browser UI for <input type="date" name="mydate"> and maybe my attempts to localize this field have been met with frustration because niceties like localization have not yet been included in their implementation, but I don't even see mention of it in the HTML5 spec. Is there...