Monthly Archives: June 2012

Check when an HTML5 video has loaded

I’ve done a lot of work with Flash video, as I suspect most front end developers have, and as excited as I was for video that didn’t need a plug-in, I’ve also found HTML5 video a bit frustrating at times. … Continue reading

Posted in web development | Leave a comment

It took me a bit to figure out the right way of handling events in JavaScript

When I first started to learn JavaScript in school, one of the things that I found confusing is that there’s a hundred ways to do everything. And to make it even more confusing, there’s a hundred people that will tell … Continue reading

Posted in javascript | Tagged , | 1 Comment

Using JavaScript to get CSS values of pseudo elements

If you want to get the CSS property value of any element using JavaScript, you use window.getComputedStyle. This gives you the final value after the page is rendered. So if you wanted to get the width of a div, you’d … Continue reading

Posted in javascript | Tagged | Leave a comment

It’s pretty amazing what you can make with a bit of CSS3 and a couple of lines of JavaScript

One of the things that I love about being a front-end developer is that website effects that were sometimes more complicated and time consuming than they were worth can now be created with a few lines of code. When I … Continue reading

Posted in web development | Tagged , , | 1 Comment

Client side form validation with JavaScript that even works in IE8

I’m a big fan of client side validation because, a) I’m a front-end guy and b) since I use Ajax to send the content to the server, I don’t really want to go to the trouble of checking it on … Continue reading

Posted in javascript | Tagged , | 1 Comment