html5

iPhone WebApp cache

Hi, I've made a simple Web Application for the iPhone, it's just 6 pages each with an image on it and I use the Cube transition to switch between them, all static content. I need this to work on an iPod Touch offline, i.e. visit it once, disconnect from WiFi, and then be able to browse the static site. I'm trying to do this using the H...

Javascript Canvas Serialization/Deserialization?

Can you serialize/deserialize a canvas object in javascript? ...

Capture HTML Canvas as gif/jpg/png/pdf?

Is it possible to capture or print what's displayed in an html canvas as an image or pdf? I'd like to generate an image via canvas, and I'd like to be able to generate a png from that image. ...

How does the live, real-time typing work in Google Wave?

I'm sure Wave doesn't poll the server every millisecond to find out if the other user has typed something... so how can I see what the other person is typing as they type? And without hogging the bandwidth. ...

How can I modify HTML Canvas colors using an interval loop?

i wrote this and wanna start and end the loop with certain colors (e.g. start with rgb 150,150,200; end with rgb 190, 160, 200): <!DOCTYPE HTML> <html> <head> </head> <body> <canvas width="400" height="100"></canvas> <script> var context = document.getElementsByTagName('canvas')[0].getContext('2d'); var lastX = contex...

Where can I learn about how to use html5 for client-side database apps?

I would like to begin using the client-side database functionality of html5, but I don't know where to go for a good introduction/tutorial/how-to. I've been coding (x)html for years and years, so I'm not so much interested in a "here's the <head> element" type of introduction; I want to learn about what's new in html5 in general, and cl...

Which browsers support the html 5 <audio> tag on Windows today?

Which browsers support the html 5 <audio> tag on Windows today? Edit: Trying http://moztw.org/demo/audioplayer/ as a test. Chrome 2, and Safari 4 not working for me. ...

In HTML5, can you save an image to cache programmatically?

I love that in HTML5 you can save text data out to a local database, and can even use SQL to do it. (http://webkit.org/blog/126/webkit-does-html5-client-side-database-storage/) I've got an app that I've written for the iPhone's MObile Safari that caches everything offline except for images. The images still have to be downloaded from t...

What to learn for RIA

hi, I am planning to build a RIA about a year from now (when my current contract ends). What technology would you recommend investing time in? I will need good cross browser/platform support for video, music, and canvas. And ideally I would like to leverage my Python skills. Silverlight looks interesting because I could use Python th...

HTML 5 - Early Adoption Where Possible - Good or Bad?

This question was inspired a bit by this question, in which the most upvoted answer recommended using a feature from HTML 5. It certainly seemed to be a good method to me, but it made me curious about using features from a future spec in general. HTML 5 offers a lot of nice improvements, many of which can be used without causing proble...

How Semantic Can We Get With HTML 5?

This is a community wiki that asks the question, "Just how semantic can our HTML markup get thanks to HTML 5?" Below You can find the source code of a sample HTML 5 page. The object is to make a very usable, accessible, style-able webpage using as few classes and IDs as possible. Also, when do you plan to start implementing HTML 5? Are ...

Will HTML5 allow web apps to make peer-to-peer HTTP connections?

This is probably a dumb question, but I have to ask it anyway. I'd like to know if it is at all possible to create a web app that, with the help of a central server, could create direct connections with other users of the same web app. I'm imagining a process similar to UDP hole punching. I've read about the new WebSockets API in HTML5,...

Google homepage not valid html

I was looking at the www.google.com in Firebug and noticed something odd: The Google logo is centered using a center tag. So I went and checked the page with the W3C validator and it found 48 errors. Now, I know there are times when you can't make a page valid, especially when we're talking about something like www.google.com and you wa...

How do I bypass a same origin policy violation for one local file to another?

I'm trying to semi-recreate Mozilla's demo usage of JavaScript + <video> + <canvas> with files that aren't hosted on a server. Loading my document causes the error console to report this error: Error: uncaught exception: [Exception... "Security error" code: "1000" nsresult: "0x805303e8 (NS_ERROR_DOM_SECURITY_ERR)" location: "file:...

HTML5 Database administration / introspection?

I'm playing around with html client side storage and wanted to know if there are any facilities for introspection of the database - is there an equivalent of sqlite ".tables" or ".schema" ? Also, I'm not seeing my tables show up in AppData\Local\Apple Computer\Safari\LocalStorage . Is there another place tables are stored? ...

Is there a way to make html5 video fullscreen

Is there a way to play a video fullscreen using the html5 video tag. And if this is not possible does anybody know if there is a reason for this decision. ...

Save <canvas> contents to be redrawn in later animation frames?

I am drawing a graph on a <canvas> that requires expensive calculations. I would like to create an animation (when moving the mouse across the canvas) where the graph is unchanging, but some other objects are drawn over it. Because the canvas will have to be redrawn a lot, I don't want to perform the calculations to render the graph fo...

How to embed video like Firefox page?

I just updated Firefox 3.5. When I visited Firefox website there is a video. When you click it, it enlarges and plays. I wonder if anyone knows how you can do it. Does it use any plug-in? ...

HTML5 syntax - HTML vs XHTML

Even with HTML5 being the path forward for HTML we get two options as developers: XHTML syntax and HTML syntax. I've been using XHTML as my main doctype for 5 or so years so I'm very comfortable with it. But my question is given that non-xml syntax will be allowed, is there any reason to stick with a valid XML syntax? Do you gain an...

What is a polyglot document?

In this answer to this question, Lachlan-Hunt writes the following: With HTML5, you can choose to use HTML-only syntax, meaning that it is only compatible with being served and processed as text/html it is not well-formed XML. Or use XHTML-only syntax, meaning that is is well-formed XML, but uses XML features that are not compatible ...