Posts Tagged ‘best-practice’

Precepts from our JavaScript dictator

Posted in Miscellaneous on October 30th, 2009 by Thomas – Be the first to comment

Always declare your variables and functions:
Variables which are not declared will be global. This can result in many bugs hard to detect.

Always declare your variables in top of your block:
JavaScript does not have block scope, and it is better to always declare all variables at the top of each function.

read more »

Why Does Clean Markup Matter in Web Design?

Posted in XHTML / JavaScript / CSS on May 6th, 2009 by Erland – Be the first to comment

Because the web is a changing and ever evolving organism, it’s important to build sites that can grow with it and easily ride the current instead of drowning when a new wave approaches.

Clean markup and building with web standards not only helps you do this, but will save you both time and money in the long run.

Why Does Clean Markup Matter in Web Design?

Embedding Flash without messing up the HTML fall back

Posted in XHTML / JavaScript / CSS on April 1st, 2009 by Erland – Be the first to comment

Sometimes we need to insert a 100% Flash into a page. This little snippet shows you how you can achieve it without breaking the normal browser behavior (scrollbars etc) for users viewing the retro HTML fall back.

Prerequisites: jQuery and swfobject 2.

read more »

Web Content Accessibility Guidelines 2.0

Posted in XHTML / JavaScript / CSS on March 27th, 2009 by Chr – Be the first to comment

Here’s a central resource for WCAG 2.0 with lots of practical examples. Techniques for WCAG 2.0

The Javascript Way

Posted in XHTML / JavaScript / CSS on March 26th, 2009 by Anders – Be the first to comment

The Javascript Way is a new site, set up by Tore Darell , Christian Johansen and August Lilleaas. Inspired by The Rails WayThe JavaScript Way aims to share best practises in JavaScript code, design and structure. 

The first submission talks about namespacing and encapsulation.