html5

Why is there a need for <video> or <audio>?

HTML5 brings or will bring <video> and <audio> tags, among others. Ever since I heard of them, and even more so after reading Why do we have an img element? and particularly Jay C. Weber's message back from 1993 I wondered: Why the heck? HTML has had a generic media-inclusion method for quite some time now. It supports fallback to other...

Counting embedded video plays from an external player

I'm trying to serve videos to my users using an embedded player. My current video provider provides a way of storing the amount of views that a video has, however I want to bring this functionality in house. Is there a way that I can register the 'play' of an embedded flash player (and HTML5 video player)? Perhaps by registering a callba...

HTML, printable hyperlink references, like table of contents

A link in an HTML document is normally clickable. However, on a printed page, that feature is by natural causes not available. <a href="#foo">Link to foo</a> [... loads of content ...] <a name="foo"/>Here is foo Klicking on "Link to foo" on screen will scroll the page to the right place. Is there a way to refer to page number instead ...

How does one implement something like Acronym in HTML5?

Given that acronym is removed in HTML 5, how does one get standards support with similar functionality? Every other removed tag looks like CSS can do it, but that one seems to be removed completely... ...

WYSIWYG web scraping/crawling setup using Javascript/html5?

Hi folks, My goal is to allow less experienced people to setup the required parameters needed to scrape some information from a website. The idea is that a user enters an URL, after which this URL is loaded in a frame. The user should then be able to select text within this frame, which should give me enough information to scrape this ...

offline app using UIWebview for iPad

I am trying to build an iPad app which has one UIWebview. content is in asp.net. Now one of major requirement is that my app should support offline mode. First I tried looking Html5 cache manifest but as per this SO Answer it does not work with UIWebview Then I tried searching around caching mechanism available with UIWebview, I found ...

importing image on canvas html5

var img = new Image(); img.src = '/images/backdrop.jpg'; ctx.drawImage(img,0,0); I wanted to load an image from local disk on to canvas using dialog box mechanism rather than the path directly specified as in above eg. I tried different sorts using javascript but in vain,even tried using the input type as file. what else can i try? ...

Javascript + Firebug console.log(), how to not get exceptions?

Hi everybody, I'm writing a javascript / HTML5 canvas library to provide basic GUI elements for web audio applications. There's a little demo script that creates widgets with the library and assemble them in a GUI. You can find it @ http://bitterspring.net/webshifter/ The problem is, it seems to work correctly on Chrome and on Firefox ...

Web Application Framework - HTML5 with mobile devices JavaScript support

Hello all! I searched for Java based web application frameworks the last few days. I have to build a Java EE backend and a HTML5/CSS3/JavaScript frontend which can be accessed with multi-touch capable devices. So I will need modern JavaScript frameworks like Sencha Touch. My backend should be built upon with Java EE, Hibernate and MySQ...

Play sound in iPhone web app

Hello, I assume there might be a HTML5 or some JS that can be used to play sound? Before you mark this as duplicate, this question is old, so I believe outdated: http://stackoverflow.com/questions/1694631/play-sound-in-iphone-web-app-with-javascript ...

HTML5 live video "hack"

Hi, For the last two month I have been trying to "fool" safari into thinking that it's looking at a file on the server, which in fact is a live video stream from a camera encoded and muxed upon request using Gstreamer into a format that is supported by the browser. Since HTML5 supports progressive video downloads this should at least be...

Detect location of column in html5

Is there a way to detect the location or block of a column created using the -webkit-column methods? Can this column be accessed with jQuery once it is created? Is there a way to access the nodes of a specific column? Update: Is there a way to get the horizontal position of an element? ...

Javascript: get html around user selection?

It is possible to get whatever the user has selected with the mouse using Javascript, like this: http://www.motyar.info/2010/02/get-user-selected-text-with-jquery-and.html My issue is that I do not just need this text, but I also need: to get the html surrounding this text (eg. if the user selects "hello" and this hello is in the sour...

iPad HTML5 Video element not displaying poster

I'm building an iPad app that loads information dynamically via XML, some of which is displayed in video tags. The tags themselves work properly and the video can load and play, but for some reason, the iPad doesn't want to render the poster attributes for the videos. However, once I play any of the videos, all of a sudden all of the p...

ASP.NET - How to check browser support html5?

How to check browser support html5? ...

Right-to-left when using webkit-column

Is there a way to get right-to-left scrolling/content when using -webkit-column? ...

In HTML5, is the <form> element a sectioning element, like <section>?

In HTML5, some elements (e.g. <section>, <article>) create a new sectioning context in the document‘s outline, as per the outlining algorithm. This basically means you can use <h1> as the top-level heading inside them without screwing up the document’s generated outline. Does the <form> element create a sectioning context? ...

Combining two images on one canvas in HTML5

I'm working with the HTML5 canvas element. Let's say I have 2 ImageData objects that I want to combine to be able to put on one canvas. Lets assume that I don't care how these images combine. Both ImageData objects have the exact same pixel count and shape. What's the best way to combine the two images? I figure that I can write a for ...

How to export SWF as HTML5 Canvas on Flash Professional CS5 ?

Hey there, I have Flash CS5 on my computer but didn't find the way to export swf as HTML5 Canvas.. any help? ...

What kind of Java libraries are available for generating HTML5?

Our test harness needs to generate HTML tags (for img, table, br, audio, video ..) for testing a certain module. We are looking for java libraries which can generate HTML5 compliant code. There is a thread which already discusses this, but not sure if they support HTML5 ...