html5

Why doesn't the defer attribute work on script tags that don't source an external js file in Firefox?

Why doesn't the defer attribute work on script tags that don't source an external js file in Firefox? lets say an ancient cms only allows me to add javascript to templated pages via in-page [script]...my code...[/script] tags and strips any html tags entered into the content area field, thus preventing me from embedding scripts just abo...

Should there ever be anything between the end </body> tag and the end </html> tag

Is there ever an instance in which something should (or can?) be placed between the </body> and </html> tag? Or should they always be paired? I was reading the HTML5 spec, and it got me thinking about the basic structure of a page. Are there any cases where anything can/should be placed after the </html> tag? It used to be gospel that...

HTML5 Canvas API on a memory-saving 1bit per pixel CanvasRenderingContext?

Is there a way to use the HTML5 Canvas API on a memory-saving 1bit per pixel CanvasRenderingContext? I'd like to create reverse lookup buffers for graphical objects that should receive interaction. There should be a buffer (w*h*1 bit) for each interactive object. Those pixels where the object is touchable would have the value 1 (it's li...

Can I build a mobile website that has access to the iphone camera?

Does webkit have access to the camera API on the iphone? What about other phones? I want to build a mobile website that enables users to click on a button that opens the camera, ask if you want to take a new picture or user an existing one (assume the former), take a picture, confirm the picture is good, then be routed back to website ...

Inline SVG Animation: Compatibility Oddities

I've been working on this for some time, but can't seem to find an adequate solution yet. The page is XHTML with inline SVG which is animated with ECMAscript once the SVG is finished loading. There is a 0.5s pause, then an eye in the middle opens. It works on Safari, Firefox, and Chrome on MacOS X. The problem is in Chrome on Windows t...

Silverlight or jQuery? Choosing the technology for the future.

Will jQuery together with HTML5 be the technology of the future? Or will Silverlight dominate the internet market share with the upcoming versions 5 and 6? Do you think it' safe to pick either technology if I have no specific preference for jQuery or Silverlight? EDIT: Please don't vote for [Close]. I am looking for valid and construct...

weird html5 manifest reloading

I'm having a strange problem with the HTML5 manifest file under Chrome 5.0.375.99 but everything seems to be working fine under Safari. When loading a page for the first time with the manifest file specified for the first time, I can observe using Fiddler that all the files in the manifest being loaded and then halfway through it seems...

Zend Framework appending Scripts & Stylesheets the HTML5 way

i am wondering using Zend Framework's view helpers, ... code below ... $this->headLink()->prependStylesheet("css/style.css") ->prependStylesheet("css/prettify.css") ->prependStylesheet("css/960.css") ->prependStylesheet("css/text.css") ->prependStylesheet("css/reset.cs...

html 5 addEventListener issue with refreshing Canvas element

I am having an issue getting addEventListener to trigger properly with my canvas element. Issue: When I add addEventLister onto my canvas element it automatically forces to animation refresh rate to run at the same time the event listener is being triggered. Basically I have "setInterval(draw, 500);" which updates the canvas every 500 ...

Interactive 3D Model in HTML5

Hi, does anybody know if its possible to get a 3D model of a building made in 3ds Max for example, onto an HTML5 web-page and make it interactive, for example pans and zooms,maybe even use it for navigation through a site? If this is not possible in HTML 5 or with such a detailed model does anyone have any recommendations for achieving ...

Editing HTML5 with Vim

Possible Duplicate: How to update Vim to color-code new html elements Default Vim HTML syntax/indent files do not know anything about new HTML5 tags. What is the best way to add support for HTML5 to Vim? ...

Marking up a search result list with HTML5 semantics

Making a search result list (like in Google) is not very hard, if you just need something that works. Now, however, I want to do it with perfection, using the benefits of HTML5 semantics. The goal is to define the defacto way of marking up a search result list that potentially could be used by any future search engine. For each hit, I w...

implement 'math' array as web-ready image (e.g. SVG)

...

What does _gaq || [] accomplish for Google Analytics Ecommerce tracking?

Possible Duplicate: whats the javascript var _gaq = _gaq || []; for ? In the asynchronous example of Google Analytic's Ecommerce tracking code, the declaration of the array is: var _gaq = _gaq || []; I'm trying to understand what they are doing here. Is this a true OR statement? Is this because of the async treatment of t...

How to properly unload/destroy a VIDEO element

I'm working on a realtime media browsing/playback application that uses <video> objects in the browser for playback, when available. I'm using a mix of straight javascript, and jQuery, My concern is specifically with memory. The application never reloads in the window, and the user can watch many videos, so memory management becomes ...

Drawing multiple images to a canvas using image.onload

I am running into problems when trying to draw a large 2D array of images onto a canvas. Using a separate program, I'm taking one big image file and breaking it up smaller, uniform pieces. I'm using the 2D array to represent this "grid" of images, and ideally when I assign the src of each element in the grid, that image would be drawn to...

How can I play video offline on iPad, using an HTML 5 web app (using Sencha touch or otherwise)

I've created a web app (using Sencha Touch, but that's not important) which I'm trying to get offline. It's a slideshow with images and a video. When online, it plays an mp4 video using the tag in HTML . I can take it offline using a cache manifest file, which works fine for all other content, but my video won't play when offline. I've...

What are the benefits of using sessionStorage?

Just wondering what are the actual benefits of using HTML5's sessionStorage when storing HTML content to be used in a Javascript carousel? Is it performance related? Load Times? Bandwidth? ...

jQuery: notification of visible html elements

I want to be able to find out when a page element is on or off the viewers screen. Specifically, I'd like to be able to "turn off" an html 5 canvas (Processing.js) script if the user has scrolled past the canvas and back on when it is visible again in the users browser. Does this make sense? I am thinking that there must be some way for...

html5 canvas: server or client fast transforms from longitude latitude to pixel values

I am working on some maps and animations using the html5 canvas element (example visible here.) I would like to be able to efficiently generate pixel-valued linestrings (x1, y1, x2, y2), ideally from PostGIS, based on the geometry of the canvas. That is, in pseudo-geojson: "Coordinates":"[[-122.0, 35.0], [-121.0, 36.0]]" might outpu...