html5

HTML5 Canvas: How to make a loading spinner by rotating the image in degrees?

I am making a loading spinner with html5 canvas. I have my graphic on the canvas but when i rotate it the image rotates off the canvas. How do I tell it to spin the graphic on its center point? <!DOCTYPE html> <html> <head> <title>Canvas test</title> <script type="text/javascript"> window.onload = function() { var drawingCan...

ASP.net canvas server control

I was wondering if anyone has come up with an ASP.net server tag for the HTML5 canvas? I was thinking of something where I could declaritively define paths, curves; etc in the aspx markup, and the control would deliver the js to do this (perhaps with support for browser detection, and delivery of an emulation script for IE browsers.) ...

Fixed mouse pointer with jQuery draggable

I'm building a little game in HTML5. The canvas element is a viewport into the game world. The user can move the viewport's position in the world by clicking and dragging with the mouse on a small icon. The problem is that the scrolling stops when the mouse pointer hits the edge of the screen. In all likelihood, that will limit scrol...

Why aren't these Canvases rendering?

I'm creating a web app that allows users to enter a number of colors, by specifying RGB values. Upon submission, the user will see a canvas with a solid rectangle drawn in the color chosen. On this page, I have 7 canvases. The first one draws just fine, but none of the rest show up. The browser is Safari. Here's the relevant code: Fir...

HTML5 canvas object events

Hi, Is there a way to attach an event handler to a object drawn on HTML5 Canvas, without tracking the points? Cheers, I ...

What are some methods to debug Javascript inside of a UIWebView?

I'm trying to figure out why something with Javascript isn't working inside of a UIWebView. To my knowledge, there is no way to set a breakpoint inside of XCode for a js file. No problemo, I'll just go back to 2004 and use alert statemen-- oh wait they don't seem to work inside of a UIWebView either! The only thing I could think of is b...

Render asp.TextBox for html5 input type="date"

Hello. I don't know if it has been asked before, couldn't find it either. Is it possible to control the type of the input text that is rendered by an asp:TextBox? I would like to change it to <input type="date"> any suggestions or comments are welcome, thanks ...

HTML5 Offline Storage on iPad and iPhone BUG

Hello everyone, I created a manifest file with 1000 items. Safari, Mozilla browsers are saving the files offline successfully and even Android saves the files correctly offline. On iPad and iPhone when I am trying to save more than 300 items in some point the applicationCache returns "error". When I am trying to save less (e.x.: 200) i...

Change video being played in HTML5 video

Hi! I'm using the tags in HTML5 to play a video on a web browser... (and I'm very impressed with this new feature) Is there the functionality to change the video being played through Javascript? Say when I select another video from a list, a Javascript function would be called which would contain something on the lines of MyVideo.Vid...

What are the use-cases for Web Workers?

I am looking for real-world scenarious for using Web Workers API. ...

How to superpose two GwtCanvas ?

Hi, I'm trying to superpose two GwtCanvas (which use an Html5 canvas). I am able to get this effect by using an absolute panel. But by doing this, I can't get my object to fill my panel. I would like to this so I can do a whiteboard in GWT. So far, I'm pretty advance but I would like to have multiple canvas overlay to support undo or pre...

websockets protocols?

I couldn't find this online so I thought I'd ask here. What protocols can be used by websockets currently? (in chrome) Also does chrome or any other browser plan to support RUDP protocol for websockets eventually? Thanks in advance! ...

Getting ready to learn html5

I'm a desktop application developer, and I plan learning html5, but as it's not released, there are (almost) no published books and not too much infomation for beginners on the web... I feel I should start with html4 and the current web development skills. I think I should start with html4, css, and javascript... but there are so many t...

Will adopting an html5 semantic structure improve my SERP rank?

By using the new html5 tags like header, footer, nav, article, etc. and even micodata/formats to structure your website. From what I understand this will help search engines understand your page. If so would this help your SERP rank? ...

How does the Google Voice HTML5 app access the iPhone dialer?

How does the Google Voice HTML5 app access the iPhone dialer given that it's not a native compiled app? ...

Does HTML5 make Javascript gaming safer (more secure)?

I know that Javascript is an incredibly unsecure way of programming a persistent game, where for instance you are doing battle calculations in an RPG and then award XP through linking to a PHP page when they win that adds XP to a database (since the player could make their own javascript to always win or just look at the PHP page that yo...

Offline mode app in a (HTML5) browser possible?

Is it possible to build an application inside in browser? An application means: 1 Where there is connection (online mode) between the browser and an remote application server: the application runs in typical web-based mode the application stores necessary data in offline storage, to be used in offline mode (2) the application sync/pus...

How do i play H264 video?

Hi, I have received the following video file from a camera (from security camera) http://dl.dropbox.com/u/1369478/tmw/recording.264 How can i view the content? Based on extension i think that is a H264 file. Is there a way to play this on the browser with HTML5? Regards ...

embedding hyperlinks in a HTML5 video player

Is there anyway to embed html hyperlinks (readable when javascript is off in the browser) within an HTML5 video player? Maybe an embedded link within the video musing CSS, or a link in the title bar? Thanks ...

Html 5 Time Tag not recognized by IE8 when cloning

I have been having trouble getting IE to recognize the new Time tag in this context. This all works great in FF. Here is the code: var origComment = $('.articleComment:first div'); if (origComment.length > 0) { var commentHtml = origComment.clone(true); commentHtml.find('time').text('today'); var html = '<article class="' + ((side == 'L...