html5

How can I make HTML 5 video playback fit to frame instead of maintaining aspect ratio?

I've been experimenting with HTML5 video playback. For example I have this video object embedded on my page: <video width="480" height="380" class="ecard" tabindex="0"> <source type="video/ogg; codecs=&quot;theora, vorbis&quot;" src="videos/1156 In your honor we'll be dancing.ogv"></source> <source type="video/mp4; codecs=&quot;av...

Does HTML5 allow you to interact with local client files from within a browser

I've seen some posts regarding access to files on a client machine by a webpage, namely this question. I'm trying to hop on the "continuously update in the cloud" paradigm for some algorithms I am writing so my users can access the latest versions by simply accessing the webpage. This requires that the program/webpage can start with a ...

Is there a way to create a custom HTML validation schema for Visual Studio?

Is there a way to add custom HTML validation schemes to Visual Studio? If so, is there a resource to download schemes? Note IE6 validation is there as a painful reminder ...

Which web browsers support Gelocation via HTML5?

Which web browsers (and version) support Gelocation via HTML5? ...

Question of standards: I, EM, B, STRONG, BIG, SMALL

In real work, I always use EM for italics, STRONG for selection. And SMALL. I decided to update their knowledge in HTML + decided to look towards the HTML 5 So, xHTML 1.0 strict, as the language of separating flies and cutlets, and allowed the following inline elements related to the text: I, EM, B, STRONG, BIG, SMALL here, I came ac...

HTML 5 and Javascript's Role?

Anyone clear on how big a role Javascript will play when HTML 5 comes around? I'm deciding now whether to purchase a book on Javascript DOM or learn something useful like cooking with hemp oil. I'm already weary of the past year and a half I've spent absorbing AS3. I love it, I just don't want to be outmoded in 5 years when the iRevol...

Why does canvas.toDataURL() throw a security exception?

did i not get enough sleep or what?? This throws Error: SECURITY_ERR: DOM Exception 18 and here's my js code... There's no way this shouldn't work!!! var frame=document.getElementById("viewer"); frame.width=100; frame.height=100; var ctx=frame.getContext("2d"); var img=new Image(); img.src="http://www.ansearch.com/images/interface/item/...

Android: Using html5 to determine geolocation in webview with javascript api

I'm currently having an issue with geolocation in a webview. I have a webapp. I'm currently not using phonegap or any other mobile framework. I've been unsuccessful at getting the built-in html5 geolocation javascript api to work on an application that runs in a webview in an android app. The site works fine otherwise from the chrome bro...

Local Databse Storage default data.

Hi I have developed application using HTML 5 Localstorage. How can I create a TABLE and populate 10000+ rows before initializing my HTML 5 enabled application. Please suggest a pattern. ...

how to use the 'video' element on safari.

<video id="myVideo" src="2.mp4" controls="" tabindex="0">decoder not found</video> this code show ' decoder not found' on safari (my os is windows xp) why ? thanks and this html5 vedio can be show on firefox and chrome ,but not safari. http://shapeshed.com/examples/HTML5-video-element/ why ? ...

Using valid HTML 4.01 Strict with Django

I've found a similar question here, but I'm looking for more general solutions. As it is now, when Django generates anykind of HTML for you (this mainly happens when generating forms), it uses self-closing tags by default i.e. <br /> instead of <br>. <br /> is valid XHTML and I think HTML5 also, but it's not valid HTML4. Is there any c...

CSS3 box shadow on top of children

How do I get an inset CSS3 box shadow to render on top of its children elements? Problem: HTML: <div id="chatroom"> <div class="chatmessage"><b>User 1:</b>Test</div> <div class="chatmessage"><b>User 2:</b>Test</div> <div class="chatmessage"><b>User 1:</b>Test</div> <div class="chatmessage"><b>User 2:</b>Test</div> ...

Is there a way to dynamically extend the html5 canvas without clearing what's drawn on it?

see this when the output reaches the bottom of the page, i'd like the canvas to automatically extend so that it can keep going. I tried setting the canvas.height property, but it clears the window. Is there any way to do this? ...

Play ogg inside a page?

I was pretty surprised when i saw http://www.vorbis.com/music/Hydrate-Kenny_Beltrey.ogg link not give me a download option but had a player that was not flash playing the audio back. (FireFox) Is there a way i can embed this onto a page? ...

Which technology is best to develop web2.0? Flex,JavaFX and html5

I would like to know the html5 has the complete feature to develop the web2.0 and i want to know from these technology like flex, javafx and html5 which one will be the best to develop the web2.0? ...

HTML5 peertopeerconnection()

Am I right in thinking that the HTML5 peertopeerconnection() for enabling peer to peer communication between different computers browsing the same site has been dropped from the latest draft and has not been implemented? (see this previous question for more details). ...

HTML5 Cache manifest file itself is not cached, and called at each resource load

We have a web app that runs on the iPhone.The manifest file is ok, and the resources(html, css, js) are cached correctly.The page sits in the home screen. The trouble is, when the page loads a resource from the cache, there is as well a GET call to the server to read the Cache Manifest file.The server is configured to send the correct h...

Do HTML5 custom data attributes “work” in IE 6?

Custom data attributes: http://dev.w3.org/html5/spec/Overview.html#embedding-custom-non-visible-data When I say “work”, I mean, if I’ve got HTML like this: <div id="geoff" data-geoff="geoff de geoff"> will the following JavaScript: var geoff = document.getElementById('geoff'); alert(geoff.dataGeoff); produce, in IE 6, an alert wit...

Problem With HTML5 Application Cache Whitelist - Won't Ignore Items

I'm trying to use HTML5 Application Cache to speed some things up on an iPhone webapp. It works great for storing images, css and JS, but the problem is that it also tries to store the HTML. I haven't been able to get it to ignore the html and stop storing it in the cache. From what I've read, I have to "whitelist" the files and direc...

jQuery and HTML5 DOM change UNDO function

Hello, I have a container div where several spans are draggable. I want to build an UNDO function for them. I am thinking at: when span attributes are changed (position, css) the script detects a DOM change the DOM change is stored via HTML5 localStorage When the UNDO function is called the last version of the DOM replace the current. ...