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...
A link would be great.
Thanks.
...
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?
...
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...
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...
Rather than
<input type="submit" />
I want to output
<button>
using the button_to method (rails 3.0.0)
Is this possible?
...
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">google</a> renders in the correct colour text for A tags, but no hover effect is being applied, the pointer doesn't change and I cant ...
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");
}
...
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
...
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 ...
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....
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 ...
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....
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;...
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 ...
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>
...
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;file=api&amp;v=2&amp;sensor=true&amp;key=*xxxxxx*" type="text/javascript"></script>
<script type="text/javascript">
var map;
var geocode...
can we export canvas image as svg or base 64 and then import it back again?
...
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...
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!
...