html5

localStorage doesn't retrieve values after page refresh

I'm trying to test out html5 localStorage feature. For some reason, whenever I try to retrieve a value from storage after refreshing the page, I only get null values returned. (If I try retrieving the values in the same function that I set them in, then I can properly retrieve them). One thing: the html/javascript that I'm loading is b...

.NET - Is it possible to use ASP.NET without MVC using HTML 5?

A link would be great. Thanks. ...

Is there a workaround for "dataTransfer setData multiple formats does not work in Chrome for Windows if one of the types is 'DownloadURL'"?

I submitted a bug to Chromium here: dataTransfer setData multiple formats does not work in Chrome for Windows if one of the types is "DownloadURL" This bug is probably not going to get fixed anytime soon. Is there a workaround for this issue? ...

html 5 - to offer full clipboard control? (for discussion)

I get it. Security becomes an issue with allowing a website to Paste content onto a users clipboard. I have yet to find a reliable way to do that, that doesn't involve on the subject-to-change per the current version, soon-to-stop-working Flash way of doing it. Perfect world: the 1st time a website tries to use a user's clipboard, promp...

HTML5 Canvas ImageData assignment acting weird

I can't figure out why this isn't working. I draw an image onto a canvas, use getImageData, manipulate the pixels and then store that array of pixels for later. When I'm ready to draw those pixels later, I use createImageData on another, identically sized canvas, set the resulting ImageData object's data property to the array of pixels...

Can button_to generate html5 <button>?

Rather than <input type="submit" /> I want to output <button> using the button_to method (rails 3.0.0) Is this possible? ...

Anchor tags stopped working in HTML5 website

I'm using HTML5 reset as the basis for writing an HTML5/CSS3 website. For some reason though, basic anchor tags are no longer clickable in anything other than IE! <a href="http://www.google.com"&gt;google&lt;/a&gt; renders in the correct colour text for A tags, but no hover effect is being applied, the pointer doesn't change and I cant ...

HTML5 localStorage apped new data to already existing keys

I have the following localStorage keys: localStorage.setItem(1, "some data"); localStorage.setItem(2, "some data"); localStorage.setItem(3, "some data"); . . . localStorage.setItem(600, "some data"); How can I append to those Keys new data in a loop? var i = 0 for(h=0;h<600;h++) { key = i++; localStorage.setItem(key, "new data"); } ...

HTML5 Cache Manifest in Mobile Safari

I've setup an HTML file with a cache manifest, an HTML5 doc type, and verified the manifest file is returning the correct mime type. The file, however, does not cache and therefore does not work in offline mode on Mobile Safari on the iPhone. The simple HTML file is at the URL below. http://www.joeldare.com/i/calories/new/index3.html ...

File drag&drop, detect when dropped outside ?

I'd like to modify the default behavior of my browser when drag&drop-ing a file in my webapp (html5). By default, if you drop a file outside a dropable box the browser tries to open it and quit the current page. On gmail, this is desactivated! Have you got an idea how this is done ? I was thinking about the onbeforeunload event but it ...

Canvas or what?

I'm making a social networking site, and it will have a 'group map' which shows all the groups with their importance with lines connecting them all. Here is an example of what I am aiming out. The problem is I don't know whether to use a HTML5 canvas or something else. The problem with a canvas, though, is the IE compatibility issues....

Need help using this function to destroy an item on canvas using javascript.

Hi All, I have the following piece of code written using mootools and mootools canvas library. CANVAS.init({ canvasElement : 'canvas', interactive : true }); var itemlayer = CANVAS.layers.add({ id : 'items' }); for(var j = 0; j < 5; j++) { for(var i = 0; i < 5; i++) { itemlayer.add({ id : 'item-'+i + '-' + j, x ...

I am able to draw the box but I am not able to remove it! (Canvas)

Hi, I have asked this question before and it seemed that the code I was using was pretty confusing. So this is a virtually dumed down version of the same code. I draw a square on the canvas using the add function. Like wise I should be able to remove the item from the canvas using the remove function! Alas it doesn't seem to happen so....

Save many canvas element as image

I have 3 layers of canvas - 1 is matrix, 2 & 3 is graphics, how to preserve them in one image? <div style="position: relative;"> <canvas id="matix" width="100" height="100" style="position: absolute; left: 0; top: 0; z-index: 0;"></canvas> <canvas id="layer1" width="100" height="100" style="position: absolute; left: 0; top: 0;...

Serving HTML Content

I'm in need of a way to serve either HTML or links to external webpages. Basically what needs to be done is we will have webpages, and then would like to give a user of our site a URL or piece of javascript to insert into their own page, which will then display our HTML on their page upon load. Can somebody please guide me in the right ...

HTML5 localStorage replace data to already existing key

I have the following localStorage key: localStorage.setItem(1, "<div id='MyId'>value 1</div><div id='NewId'>other value</div>"); Is it possible to replace, change only the second id, make the: <div id='MyId'>value 1</div><div id='NewId'>other value</div> turn into <div id='MyId'>value 1</div><div id='NewId'>replaced value</div> ...

HTML5 Geolocation is so slow! what I'm doing wrong?

this is my simple code I'm using in a test page: but it takes ages to find the address...how come? am i doing something wrong? <script src="http://maps.google.com/maps?hl=it&amp;amp;file=api&amp;amp;v=2&amp;amp;sensor=true&amp;amp;key=*xxxxxx*" type="text/javascript"></script> <script type="text/javascript"> var map; var geocode...

HTML5 canvas image how can be saved in SVG or base 64 format?

can we export canvas image as svg or base 64 and then import it back again? ...

strange html5 behavior

The following html(5) produces a black line at the bottom of the div. This is caused, because the div get's heigher than the contained image. But I wonder why this happens? <!DOCTYPE html> <html> <body> <div style="position:absolute; background:#000;"> <img src="http://images.google.com/intl/de_ALL/images/logos/images_logo_lg...

HTML5 Web sockets (TCP Connection), with flash fallback

Hi, I read about a project that enables the developer to program a HTML5 web sockets application that is compatible with older browsers by automatically falling back to using a flash method. Can anyone source this, as I can't find details now I'm interested in starting development? Thanks! ...