html5

How to check keyboard state while painting on HTML5 canvas?

I'm just mucking around a bit with HTML5 canvas and painting. I happened to find this article by Opera that describes well how to set up a simple application. I would like to extend it so that the user may set up a vanishing point (1 point perspective) that may be used to constrain painting. To allow this I need to figure out a way to d...

Dynamically pixelate an html image element

I'm to take an image on a webpage, and then use javascript (or whatever would be best suited) to dynamically 'pixelate' it (e.g. into 20px squares). Then, as the user scrolls down the page, I need the image to gradually increase in resolution, till it is no longer pixelated. Any ideas how I could go about doing this? I realise I could ...

Is geocoding possible with a phone that's not GPS enabled?

For instance, can I visit a website and get the location that way? I know you can do it with HTML5, but will that work on phones? ...

Internet Explorer percent based layout issue

Heya, My goal is to make a layout that is 200% width and height, with four containers of equal height and width (100% each), using no javascript as the bear minimum (or preferably no hacks). Right now I am using HTML5, and CSS display:table. It works fine in Safari 4, Firefox 3.5, and Chrome 5. I haven't tested it yet on older versions...

Decrypting videos before playout using Javascript/or something else and HTML 5 Events

HI There, we have the video in the local file system , and when the user clicks on the video the brower is lanuched. now we need to decrypt videos before playout using Javascript/or any client side technology(using activex ..etc) and HTML 5 Events. what is the best way to do this ? Thanks for your comments DEE ...

Making a non-trivial Image and Video Gallery with a really nice interface

Short part: I'm starting to build an Image and Video Gallery for our intranet. It's pretty much like an image gallery with video thumbnails that play on click. It's just good to keep that in mind because caching and streaming happen in very different ways there. It will serve to browse our reference database, which will also contain s...

Can HTML5 do most of what Flash does today?

What can it do? and what can't it do? (in relation to flash) ...

Selecting element by data attribute

Is there an easy and straight-forward method to select elements based on their data attribute? For example, select all anchors that has data attribute named customerID which has value of 22. I am kind of hesitant to use rel or other attributes to store such information, but I find it much harder to select an element based on what data ...

CSS semantics; selecting elements directly or via order

Perhaps this question has been asked elsewhere, but I'm unable to find it. With HTML5 and CSS3 modules inching closer, I'm getting interested in a discussion about the way we write CSS. Something like this where selection is done via element order and pseudo-classes is particularly fascinating. The big advantage to this method seems to...

Is there any events available for the reset option for input search ?

In HTML5 there is a new input type, 'search'. On most browser it's just remain to a simple 'text' input, but for webkit based browsers, it adds a little cross to reset the input. I'd like to be able to handle this, is there an event for that ? ...

JavaScript: Changing src-attribute of a embed-tag

I have the following scenario. I show the user some audio files from the server. The user clicks on one, then onFileSelected is eventually executed with both the selected folder and file. What the function does is change the source from the embedded object. So in a way, it is a preview of the selected file before accepting it and save t...

Google Wonder Wheel API or js widget

Hi, do you know a Google API or a jquery js plugin to visualize the data like "Wonder Wheel"? I'd like to use this widget with my data. http://bit.ly/dysDQn ...

How to use/modify Google Gears

Is there anyone here with enough familiarity with the Gears code-base to give me an estimate of the effort required to bring Gears up to date? ...

I'm trying to display records from a database and then when a new one is added automatically update the displayed records from the database with the new one

I'm trying to display records from a database and then when a new one is added automatically update the displayed records from the database with the new one I am doing this using php and javascript. I want to load a page and display tags under a video and then when a user adds a new tag by entering it into text box to add it to the data...

Getting location via a web application being run in a WebView

m.google.com somehow requests the current location when loaded in Android's browser. I want to do the same thing from a web page being loaded into a WebView in my own application. Is the only way to go about this with WebView.addJavascriptInterface(), or is there already a javascript interface available for webapps to use? ...

Browser gets blocked, workers to the rescue?

Hello, I use JavaScript for rendering 20 tables of 100 rows each. The data for each table is provided by controller as JSON. Each table is split into section that have "totals" and have some other JavaScript logic code. Some totals are outside of the table itself. As a result JavaScript blocks browser for a couple of seconds (especially...

Is it possible to get download progress of video/image in HTML5 ?

Hello, Almost every flash player has an option to display how much of buffer (or % of total video) is downloaded to the client. At the moment I don't see it in any implementation of html5 video player. The real problem I am trying to solve is to have a way of knowing % of downloaded asset (image/swf/video whatever). In flash its easy b...

HTML5 iPhone Safari Mobile visualize something rather than quicktime symbol when creating an audio tag

I'm writing a very simple webpage in html5 for iPhone. the page is this one Not Working Everything works but in the page from the iPhone i see the quicktime logo with a slash on it and if i tap on it the player shows up the play button and in the background there is the quicktime logo. is it possible ...

How to use HTML-5 data-* attributes in ASP.NET MVC

I am trying to use HTML5 data- attributes in my ASP.NET MVC 1 project. (I am a C# and ASP.NET MVC newbie.) <%= Html.ActionLink("« Previous", "Search", new { keyword = Model.Keyword, page = Model.currPage - 1}, new { @class = "prev", data-details = "Some Details" })%> The "data-details" in the above htmlAttributes give the...

Javascript Upload to self

How can i upload a file and get its contents in javascript. For example, i want to upload an mp3 and play it in the html5 audio tag without having it on the server. Is this possible? ...