html5

Resizing the window playing HTML5 video

I have videos playing on a new window using the video tag in HTML5. I want the size of this new window to change depending on the height and width of the video that is being played. Is there some way to do this? I am using GWT by the way. ...

Ogg (theora / vorbis) playback in Firefox 3.6

I have this html5 code, with a MP4 for Chrome (working), an OGG for Firefox (failing) and the same ogg via a java applet for Internet Explorer (working): <video width="848" height="480" controls="controls" autoplay="true" > <source src="vernissage_cpal_2009.mp4" type="video/mp4" /> <source src="vernissage_cpal_20...

Do any browsers yet support HTML5's checkValidity() method?

The HTML5 spec defines some very interesting validation components, including pattern (for validating against a Regexp) and required (for marking a field as required). As best I can tell, however, no browser yet actually does any validation based on these attributes. I found a comparison of HTML5 support across engines, but there is no ...

Write to javascript array within php loop

I have a php loop that is echoing out geolocation values. How can I get it to write those values to a javascript array, so I can then use them to plot points on an HTML5 canvas? The php loop is as follows <ul id = "geo-list"> <?php foreach($data as $phrase) { ?> <li><?php if ($phrase->geo != false) { ...

Chrome/Webkit audio tag bug?

I'm trying to get HTML5's audio tag to work in Chrome. The following code works flawlessly in Firefox, any ideas why it isn't working in Webkit? <html> <head> <script type="text/javascript"> function init(){ audio = new Audio("chat.ogg"); audio.play(); } </script> </head> <body onload="init()"> </body> I...

Need HTML5 XML-mode "Hello, World" trivial web page example

I feel stupid... my desire is to write HTML5 using XML and I can't get ANYTHING to work, for instance: <!DOCTYPE html> <html> <head><title>ABC</title></head> <body>DEF</body> </html> actually shows ABC on the browser canvas! What am I doing wrong? (using FireFox 3.5.8) ...

HTML5 video tag in chrome - wmv

Hi Al, I need to make a page which displays a video. Firefox and and Opera support the OGG format, no problem there. Chrome is ... "stupid" and does not recognize OGG. Does Chrome on Windows know how to handle WMV? I already have them encoded, and no I cannot recode new videos since the media is limited in spaced (CDROM). My code curr...

HTML5 cache manifest: whitelisting ALL remote resources?

I'm doing an iPhone version of a desktop site that includes a blog. The blog often embeds images from other domains (the image URLs always start with http:// in this case, obviously), but because I'm using cache-manifest, these images don't load because they aren't declared in the manifest file. I have a NETWORK: whitelist section that ...

How should my application keep clients in sync with schema changes to HTML5 databases?

I'm wanting to incorporate HTML5 database storage into my web application to make it online-accessible. I've done lots of development in server-side environments with databases, and we all know that database schema additions and modifications are often necessary. I am wondering what should happen if my application uses an offline datab...

How can I mix SVG and HTML into a page?

I've been using the jQuery.svg plugin to do some SVG rendering and it works perfectly but I also want to have the server render some SVG into the page and I can't get that to work. How do I add some SVG like below into the page so that Firefox will render it? <!DOCTYPE HTML> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:svg="http://w...

Javascript html5 database transaction problem in loops

I'm hittig my head on this and i will be glad for any help. I need to store in a database a context (a list of string ids) for another page. I open a page with a list of artworks and this page save into the database those artowrks ids. When i click on an artwork i open its webpage but i can access the database to know the context and ref...

How to run setInterval() on multiple canvases simultaneously?

I have a page which has several <canvas> elements. I am passing the canvas ID and an array of data to a function which then grabs the canvas info and passes the data onto a draw() function which in turn processes the given data and draws the results onto the canvas. So far, so good. Example data arrays; $(function() { setup($("#ca...

HTML5: dragover(), drop(): how get current x,y coordinates?

How does one determine the (x,y) coordinates while dragging "dragover" and after the drop ("drop") in HTML5 DnD? I found a webpage that describes x,y for dragover (look at e.offsetX and e.layerX to see if set for various browsers but for the life of me they ARE NOT set). What do you use for the drop(e) function to find out WHERE in the...

HTML5: Can't drag on-the-fly created <div> tag even though draggable='true' Do I need to "BLESS" it or something?

After creating a div on the fly with this markup: $('.circuit').prepend("<div class='component' draggable='true'>TRANSISTOR</div>"); It is NOT draggable itself :( Is jQuery prepend() the correct way to create "live" tags in the DOM? Do I need to somehow bless it a different way to make draggable=true really work? How to I wire it u...

Creating Mobile Cross-Platform Scripting Solution

I am having the dream to design a Mobile cross-platform scripting solution to achieve Developer only need to code once by scripting language(it's possible be Javascript or others need further investigation), then the solution will be able to generate the installation files for multiple mobile platforms like J2me, Android, Symbian, BlackB...

Javascript Uncaught Error: INDEX_SIZE_ERR: DOM Exception 1

The site is: http://www.clubloc.com/ And it works in firefox but not in google chrome. Internet explorer also has problems but thats pretty much a given when using HTML5 Canvas. Anyways I'm trying to figure out why it throws the error: Uncaught Error: INDEX_SIZE_ERR: DOM Exception 1 When the arrays clearly have all those elements, I ...

HTML 5 Video Error Media Src Not Supported

So I was working on a toy website (http://nirmalpatel.com/yeah/index.html). If you check the source, you can see that I have linked a m4v and ogg version. When I load this page from my own computer using a url that starts with file:// the page works fine in Safari, Chrome and Firefox. However, after I upload all of the videos and the HTM...

Why should I prepend my custom attributes with "data-"?

So any custom data attribute that I use should start with "data-": <li class="user" data-name="John Resig" data-city="Boston" data-lang="js" data-food="Bacon"> <b>John says:</b> <span>Hello, how are you?</span> </li> Will anything bad happen if I just ignore this? I.e.: <li class="user" name="John Resig" city="Boston" lan...

Respecting EXIF orientation when displaying iPhone photos on the web

I am developing an iPhone camera app that uploads an image to Amazon S3 and that image is displayed on a website. When the iPhone takes a picture, it always saves the photo in an upright orientation, while the orientation used to correctly view the photo is saved in the image's EXIF data. So if I take a photo with the iPhone and open i...

Which elements of an XHTML/HTML5 page should be explicitly included in the document outline?

The HTML5 spec definition of the "section" element is: The section element represents a generic document or application section. A section, in this context, is a thematic grouping of content, typically with a heading....Note: The section element is not a generic container element. When an element is needed for styling purposes or a...