The HTML5 Helper
JavaScript, XML, HTML5, CSS, Canves, DOM
Monday, August 26, 2013
Saturday, June 29, 2013
Saving draggable object locations
Recently I've been interested in creating diagrams using HTML, CSS, and JavaScript. I started out trying to do this with draggable shapes using Canvas. I decided to ditch Canvas because I could not find a way to save the shape locations. So, in this version I settled on jQuery UI to save my shape locations using the localStorage API. View the app and get the source code
Will this work in IE8? No, you will get the following error in IE8 because localStorage is not supported.
Will this work in IE9? No, you will get the following error:
Wednesday, June 26, 2013
Thursday, May 23, 2013
Why does the childNodes array have and inaccurate number of items
As you can see from the image below, the childNodes array has 13 item. But clearly the "book" element has only 6 childNodes. Why is this inaccurate?
Answer: It's because of the white space between the elements.
Wednesday, May 22, 2013
Loading a local XML file in Chrome, Firefox and IE 10
Like me, you might have found it a challenge at first to load a local .xml file into Chrome. Well this video might help you solve that problem. If it does help please leave a comment below.
Subscribe to:
Posts (Atom)