html5

Does HTML5/Canvas Support Double Buffering?

What I'd like to do is draw my graphics on a buffer and then be able to copy it as is to the canvas so I can do animation and avoid flickering. But I couldn't find this option. Anyone know how I can go about this? ...

call a Javascript function from controller more than once (in Rails)

hi. I have a multiple file upload form(html5) and want to update my view as soon one of the images is transfered to my image server. Currently I upload the files with ajax and use response_to_parent to update my upload view when all images are transfered to the image server. Is it possible to call a Javascript function from the cont...

Bind event to shape on canvas

How can I bind an event to a shape drawn on a canvas? I presumed this would work but I get an error. <html> <head> <script type="application/javascript"> function draw() { var canvas = document.getElementById("canvas"); var ctx = canvas.getContext("2d"); ctx.fillStyle = "rgb(200,0,0)"; ...

Not able to show video with html5

I am testing html 5 video tag. I am using http://www.kaltura.org/project/HTML5_Video_Media_JavaScript_Library and http://camendesign.co.uk/. I downloaded the creative common video. When I use an external link, it plays the video. So I uploaded the video to my server but it does not play. It asks if I want to save it or asking an appli...

Seeking through a streamed MP3 file with HTML5 <audio> tag

Hopefully someone can help me out with this. I'm playing around with a node.js server that streams audio to a client, and I want to create an HTML5 player. Right now, I'm streaming the code from node using chunked encoding, and if you go directly to the URL, it works great. What I'd like to do is embed this using the HTML5 <audio> tag,...

Suitable data structures for saving files in localStorage (HTML5) ?

It is nice when there isn't a DB to maintain and users to authenticate. My professor has asked me to convert a recent research project of his that uses Bespin and calculates errors made by users in a code editor as part of his research. The goal is to convert from MySQL to using HTML5 localStorage completely. Doesn't seem so hard to do,...

Javascript + HTML5 localstorage

So I'm searching for a good crash course on localstorage and interacting with it in Javascript. I want to build a to-do list webapp with some extra functionality but it would be just for 1 user. I don't want to mess with php/mysql and have the server doing anything. Links to tutorials would be best :-D ...

Security / Protecting code in JavaScript

With all the recent hype about JavaScript and HTML5 replacing Flash, I wanted to know - How would it be possible to protect client-side js code? Of course, it is possible to obfuscate it, but that would only make it a little harder. Also, for games which submit high scores to the server, wouldn't it be incredibly easy to modify those sco...

Event-source in Opera - how to avoid reconnect?

Opera supports server-side events via event-source element. W3C specification says that the connection with the serwer is being auto-reconnect. Server can maitenance the connection by sending "retry: num_of_ms". It is possible in Opera to avoid reconnect? I can not find any documentation about this tag in Opera. May be there is somethin...

HTML5 Canvas + select / drag-and-drop features in a JS lib?

Hi, I'd like to use HTML5 Canvas, but I'd like to use it in terms of shapes, texts and curves, able to attach traditional DOM events like onClick or drag-and-drop functions. Is there any Javascript library that is able to do that for me? I've seen that gwt-canvas is close to this approach, but haven't looked it in details. Thanks, I...

Is there a way to create your own html tag in HTML5?

I want to create something like <menu> <lunch> <dish>aaa</dish> <dish>bbb</dish> </lunch> <dinner> <dish>ccc</dish> </dinner> </menu> Can it be done in HTML5? I know I can do it with <ul id="menu"> <li> <ul id="lunch"> <li class="dish">aaa</li> <li class="dis...

HTML5 <section> element doesn't accept a negative margin-top in Firefox 3.6.x

I'm trying to use a negative top margin on a element and it is not working in Firefox. Chrome and IE (using HTML5-shiv) are rendering it properly. I have given the HTML5 elements (including a display: block). Thoughts? CSS if you need it: aside, article, section { display: block; } section#banner { background: url(images/banner.png...

Getting started with game development using js/html5

Anyone have experience with game development using javascript and the html5 canvas element? So far I have found two libraries, are either of these worth using? http://tommysmind.com/ (XNA Port) http://gamequery.onaluf.org/ (jquery plugin) Does anyone have any other resources? ...

Extending the HtmlTextWriterTag Enum for HTML 5 tags

Hi can anyone tell me if it is possible to extend the ASP.NET HtmlTextWriterTag Enum so that it includes HTML 5 tags? Specifically 'section' and aside' tags at the moment. I'm trying to create a control which inherits from the Panel Control, but instead of it writing a tag I want it to write either a an 'aside' tag or a 'section' ta...

Is it okay to use <input type="tel"/> now?

I'm working on a mobile phone web app and I have several text fields that could benefit from iPhone's will adjust the keyboard for the user but I'm worried about breaking backwards compatability. What I'm hoping is that browsers/phone that support this can assist the user and other browser will fall back to a standard text field? Is thi...

What browsers are compatible with HTML5?

Hi guys I was reading the Steve Job's article on why using HTML5. He indeed has some good points over the subject. I would like to invite you developers who are working now with HTML5 to answer my question: What browsers actually work well with HTML5? thank you ...

How to write a Google Doc type rich text editor

I need to write a rich text editor similar to Google Doc. Does anyone know any samples of similar projects? What technologies will I need? and what process is involved? ...

HTML5 frameworks and tools?

If you were starting to build a relatively complex HTML5 app (for the iPad), what tools and frameworks would you look at using to make your life easier? SproutCore looked like it might be useful if you could just use the front end UI on its own, but it has to be used with the Ruby server, which is no use to me. Are there any libs like ...

How do I get CGI.pm to output HTML5 instead of XHTML 1.0?

I'm having some trouble getting CGI.pm to output to HTML5 instead of XHTML 1.0 or HTML 4.01. When I try "HTML5" or "HTML 5" as the -dtd argument in start_html() I get a document in HTML 4. I've also tried importing :HTML5, but that doesn't seem to work either. Any advice? ...

jBoss Response Header Configuration

Can URL-encoded response header sent by web server be stored in sessionStorage area on client side as per new feature of HTML 5 introduced in IE8?? ...