html5

Selecting a DOCTYPE for HTML 5 + all browsers

Hi. I'm using some HTML5 features on a web page and wondered what the best DOCTYPE is. Currently, this is the DOCTYPE and XMLNS: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml"&gt; Should I use the new HTML 5 DOCTYP...

HTML5 vs Flash ... Resources

I'm a novice ...in that i've taken a few courses n poured through bunches of cool flash widgets, components and techniques. now it's time for my own website ... I do graphic design n really want to use some of the ready mades for convenience and economy...r there similar non flash products? ...

How can I print directly to printer using jasper reports and grails?

Hi, Can someone please help me. I'm using grails and jasper grails plugin. I would like to send a jasper report directly to the printer from a click on my webpage. Can someone please point me to the right direction? ...

Can some one expalin me whats basically HTML 5 and hows its different ?

What are the main new features of HTML 5 ? ...

html5 client-side form validation and language

Hi all, Opera already supports several HTML5 form validation attributes such as required, pattern, etc... So when I leave a required field empty and submit it an error message appears next to the field. This is great but I didn't find any way to change the default message, also to change the language of the error message (I tried the la...

HTML5 Web Database Security

Should the HTML5 database be used to store any form of private information? Say we have the following scenario; You're browsing a web-mail client, that uses the web database to store mail drafts after you've written some information you close the web browser. What's to stop me from getting access to this information? If the webpage t...

Is there a way to convert SVG files to HTML5's canvas compatible commands?

The title resumes everything. :P ...

Mobile Safari 5mb HTML5 application cache limit?

It's becoming evident in my testing that there's a 5mb size limit on Mobile Safari's implementation of HTML5's application cache. Does anyone know how to circumvent or raise this? Is there some unexposed meta tag that I should know about? I have to cache some video content for an offline app and 5mb is not going to be enough. ...

HTML5 video on iPad

I have a dynamic video gallery and it works great on a computer. When moving to an iPad, the video starts loading and it shows the cannot play icon. Instead of this I'd rather the video not show until it's ready to play. I have tried to add events listeners for "canplaythrough" and "canplay" and when they occur for the video to fade i...

Android WebView seems to ignore "viewport" information on web pages

I have a website that is using the viewport META tag to tell mobile browsers how to display content ( ). Viewing the page in the Android browser looks correct (and iPhone, etc). When I load the page into a WebView component in an android Application, the WebView ignores the "VIEWPORT" tag, and renders the page at "full" resolution, wh...

Android interacting with HTML5 tutorial?

I've been looking at using a WebView to display an HTML5 webpage, where the novel features of the mobile device (GPS, compass, accelerometer, camera, etc) can be fed back into the web page. I was wondering if there were any good tutorials showing these functions interacting with the webview. So far I've found ways for the WebView to se...

Webcam capture on web application

Hi. I need to take a picture from a webcam into a webapp (PHP5/JQuery/HTML5) but I cannot use Flash; Is there a light java applet or any alternative technology for this?. ...

Do you use microformats in your web projects?

Do you use microformats in your web projects? If yes then why? If no then why? If yes then for which things do you use? Is there any alternate of microformats in HTML 5 ? I haven't used microformats yet. Should i start to use now or not much need? ...

Is anyone aware of any HTML5 based language editor with content assist?

Does anyone know of a project that will allow the editing of a language (any language) within a web-page itself (via HTML-5) with content assist (ctrl+space)? CLARIFICATION I'm not looking for a HTML5 editor (I'm aware of many), I'm looking for a language editor written in HTML5/Javascript that runs within a browser. ...

HTML5 <video> element on Android does not play

Video tags like below plays fine with iPhone, but not Android: <video id="video" width="320" height="240" poster="video/placeholder.jpg" autobuffer controls> <source src="pr6.mp4" type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"'> <source src="pr6.ogv" type='video/ogg; codecs="theora, vorbis"'> </video> With the above code, Androi...

Problem setting currentTime in Chrome

I'd like to be able to step forwards and backwards through an Ogg/Theora video by incrementing currentTime with code like this: videoEl.currentTime = videoEl.currentTime + DELTA; This works well in Firefox, but in Chrome the display of a new 'frame' is erratic, sometimes with a resolution of less than a second. Is there any way aroun...

Whats the best semantic default/starting layout for html5?

I am a little confused on how the new tags should go. Is this correct: <!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title></title> </head> <body> <section> <header> <nav></nav> </header> <section> </section> <footer> ...

Can html5 video element play flash movies?

element is upcoming cross browser standart for playing videos, while most videos out there right now are in flash format. I am new to tag, so if it is possible a code sample of how to play flash movie with tag would be nice ...

Zoom in on a point (using scale and translate)

I want to be able to zoom in on the point under the mouse in canvas with the mouse whell, like when zooming on maps.google. I'd like straight code as I've been working on this for 5h+ 15h Something to start with: After 2 weeks break I did it in 3 min, here is the working code: <canvas id="canvas" width="800" height="600"></canvas> <sc...

How to draw transparent image with html5 canvas element

I am targeting google chrome. Is it possible to draw transparent images on a canvas? By transparent I mean the drawing the entire image at something like 50% opacity. ...