July 20th in JavaScript by .

Quick Tip: The Problem With Implied Globals In JavaScript

One of the pitfalls a lot of JavaScript developers get caught by, especially when starting out, are implied globals. So what is an implied global?

implied = "global";

Any time you use a variable without having declared it using the var keyword, you are creating an implied global. When JavaScript is executed inside a browser the global object, for convenience, usually refers to the window DOM object. Any implied globals becomes a property of  this global object so, the following is all valid:

implied …

July 16th in CSS3, JavaScript by .

Quick Tip: Simple Pull Quotes With aside, CSS3 and JavaScript

I just read an article from Louis Lazaris regarding the use of aside for pull quotes as apposed to blockquote. Having a read though the spec for both I definitely agree this is the better of the two elements to use for pull quotes. I am also very happy to see the spec for aside having been updated to more clearly define the use cases for this element as it was relatively unclear previously.

With that, I decided to look at …

June 25th in JavaScript by .

Quick Tip : Find Matching Items In Two Arrays With JavaScript

I was asked an interesting question a couple of days ago. The question was as follows:

If you have two arrays of say, numbers, and you wanted to list only the numbers that exist in both. How would you go about doing this in JavaScript?

The answer was not immediately evident but, I had a basic idea of how one might go about this so, I jumped in and started coding. jQuery has a very useful utility function called inArray that, as …

June 12th in JavaScript by .

SimpleBox – When All You Really Need Is A Simple Box

There is a bunch of Lightbox style jQuery plugins, from the original Lightbox to some of the new alternatives such as FancyBox. So why another jQuery plugin? Well, at around 1kb(546 bytes gzipped) minified, SimpleBox is extremely light and provides you with a nice little dialog for your confirmation messages, forms and just about anything where a full LightBox is just overkill.

Using SimpleBox is extremely simple too, include the JS file, one image, and a couple of lines of CSS …

June 5th in News by .

So There Is This New Schema

A couple of days ago Google, Yahoo! and Bing announced a new schema they have all agreed upon that will form a proposed standard for how web developers and search marketers add meta data about their content to web pages. This is not the first time these companies have worked together though, a couple of years ago they also released the sitemap standard.

So how does the schemas work? Well  first, it is build using HTML5′s microdata standard and uses attributes …

 Page 3 of 13 « 1  2  3  4  5 » ...  Last » 
Performance Optimization WordPress Plugins by W3 EDGE