Showing 13 articles matching javascript

A front end convention for class use and JavaScript

Whenever I get asked to work on an existing website I haven't worked on before I tend to find a lot of CSS classes on elements that on first glance don't appear to do anything. As a naturally tidy person, this irks me. Why are they there? Is there some element much further down in the DOM that relies upon that class, or is there some bit of JavaScript somewhere that acts on it? Or is it simply an unused class that can be safely removed?

A quick search through the CSS and JS should answer this question pretty quickly, unless the class in question is a generic word, like 'select' or 'option'. Believe it or not, this happens more often than you'd think.

This isn't a huge problem, it's a small pain that adds a few extra minutes here and there. I'm just tired of it. I'd like to propose the following convention to remove this problem entirely.

Read more

This article is tagged with

jQuery progress bar plugin

Circular progress bars

Recently I needed an animating circular progress bar for a website I was building. After some reasonably in-depth research I couldn't find anything that entirely suited my needs, so I sat down and wrote my own jQuery plugin to do it. And here it is.

Read more

This article is tagged with

Some thoughts on forms

I've been doing front end for a series of forms for the last few weeks, which has involved working quite closely with the UX guy on how they should be laid out and operate. I've worked on forms before, but somehow have gained a deeper understanding of the complexities involved this time around. I'm not sure I've fully decided what's right or what I would do given the opportunity to design a form myself, but there's definitely some food for thought here.

Read more

This article is tagged with