html5

How do I implement a Comet Programming technique (AJAX long polling)?

Current Project Setup I'm prototyping an online chat system similar to Facebook chat, using PHP, AJAX, a lot of jQuery, and a MySQL database. I'm developing on an Apache Server 2.2.14 (all local... working on a MacBook Pro 10.6.4). The way I listen for incoming chats and check for new messages in an existing chat is by doing: setTime...

XHTML5 and HTML4 character entities

Does XHTML5 support character entities such as   and —. At work we can require specific software to access the admin side of the site, and people are demanding multi-file-upload. For me this is an easy justification to require migrating to FF 3.6+, so I'll be doing it soonish. We currently use XHTML 1.1, and upon moving to HTM...

HTML 5 multi file upload with PHP

Here is the code I have, and I'm wondering what I'm doing wrong that it doesn't display the name. <form action = "self.php" method="post" enctype="multipart/form-data"> <input type="file" name="imageURL[]" id="imageURL" multiple="" /> <input type="submit" value="submit" name="submit" /> </form> And the processing info that isn't worki...

How do I duplicate the presentation functionality for HTML5Rocks.com?

When you go to http://slides.html5rocks.com/ you can see the entire presentation (with a previous and next slide peeking from the sides - all while it is relative to the screen size of the user). How do I do that with jQuery + HTML5? I just want to have a bunch of images (think a photo gallery) that can be cycled through like that. When...

Web Workers and Sparklines

I know that Web Workers don't have access to the DOM, but I was wondering if there was any way they could render a Sparkline graph behind the scenes and pass it back. If not, is there ANY way I could use Web Workers to speed up the processing of around a million sparklines? I'm trying to improve performance (see this question) ...

HTML5/DOM2/Javascript Visual Studio 2008

I've found this link- http://blogs.msdn.com/b/webdevtools/archive/2009/11/18/html-5-intellisense-and-validation-schema-for-visual-studio-2008-and-visual-web-developer.aspx to update the tags for HTML5, which isn't a whole lot of use when I'm using just one or two new tags. Is there any way to get Visual Studio 2008 to recognise the new J...

Questions about HTML5 audio

<audio src="http://upload.wikimedia.org/wikipedia/commons/8/82/Riddle_song.ogg"&gt;&lt;/audio&gt; <ul id="lyrics"> <li>line 1</li> <li>line 2</li> <li>line 3</li> <li>and so on...</li> </ul><!-- end #lyrics --> So I want to: Highlight (change color or background) of the line that is being played. Save current time to...

Weird problem on android webview with canvas

I am draw some canvas charts on the android webview, and use javascript to change chart just by hiding and showing, and also change the title by reset its innerHTML. The title is just a normal html tag "<div id='title'></div>", The problem is that the page does not render well when I switch charts, for example. when I choosed to dis...

Positive feedback

I have a matching game, where a user can drag the answer from the left column to the right. I'd like to provide some positive feedback to the user with some eye candy. I'm thinking of the letters on the right-hand side exploding like fireworks, or doing some sort of animation, like running off the screen in a random direction. You know...

Rotating a single image (but not the others) on an html5 canvas?

I have a sprite I'm animating on an html canvas using normal sprite sheet blitting. On certain key events I'd like to change the direction of the sprite (ie, flip it, or rotate it 180 degrees) without changing anything (the other sprites) on the canvas. Does anyone know how to do this? ...

Non-linear shadow in HTML design

Hi I'm trying to create a shadow that is wider in the top like in the picture below. It does not have to be very cross-browser, recent Firefox and WebKit based browser will do just fine. Does anyone have any good ideas on how to do this? ...

html5 video not playing in ipad simulator ?

Hi I created xcode universal project, I am trying to load HTML5 page in UIWebView the problem is i cant see any control to play movie, and i am getting blank screen on the video place, in ipad and iphone simulator, my .html file <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"&gt;...

Why was the <hgroup> tag added to HTML5?

Hi Friends Why was the <hgroup> tag added to HTML5? What’s their technical usage? What’s the grouping advantage? ...

Why is PHP interfering with my HTML5 MP4 video?

I'm writing a web app that serves H.264 encoded MP4 video. In Chrome and Safari, it does this via an HTML5 video tag. In order to control access to these videos, their contents are served via PHP using a really simply mechanism: header('Content-type: video/mp4'); readfile($filename); exit; No matter what I do, the videos will not str...

Partially transparent (opacity) HTML5 Canvas drawings

Is it possible to create partially transparent elements on the fly in canvas? Currently I'm setting the whole canvas element's opacity in CSS, but I want to some elements to be more visible then others. Nothing I've found so far indicates that this is possible. ...

HTML5 Video Duration NaN from Mongrel server but correct time from direct file access.

Accessing following html directly from file system gives me the correct duration. <video src="multimedia/bbb400p.ogv" id="v"></video> <button onclick="alert(document.getElementById('v').duration); document.getElementById('v').play()">Play</button> However, accessing it through mongrel web server (on my machine and th...

How can Facebook make work external iFrames?

How can Facebook make work external iFrames? nThat's my quiestion. I have always know that for security reasons, external HTML iFrames (i.e. An iFrame with src attribute different from the actual domain root), but then I realized that Facebook iFrame applications does really work, something that really surprised me because I knew that th...

flash and jquery or html5 audio?

What is the best way to construct a audio player that can communicate with the jquery on my site? Can I have flash send jquery commands when a song is finished playing? Does html5 audio support a onSongEnd or similar function? Songs on my site are a series of links that trigger jquery to reload a flash audio player with the appropriat...

how to change mime types in MAMP

I'm developing a website that has a HTML5 video. It looks like when ogg files are served with other mime types than video/ogg firefox flips. I've updated the mime.types file inside the mamp/apache/config folder and have restarted the MAMP server multiple times, but ogg files are still served with plain/text context-type. Can someone po...

Mobile Safari, Web Apps, Site.Manifest and no internet connection

Using HTML5 and the Site.Manifest file, is it at all possible to create a web app that can be added to the iPhone/iPad home screen but have no requirement for an internet connection afterward? ...