Tag Archives: JavaScript

Key Facebook JavaScript Principles

Yesterday I was working with a friend whom I consider to be a competent developer who was having some challenges integrating Facebook’s JavaScript SDK in an application. Ultimately his issue boiled down to missing a few key concepts in JavaScript … Continue reading

Posted in : Facebook, Facebook Development, JavaScript, jQuery | Tagged : , | 3 Comments

Raising Custom Events in JavaScript

Event model programming in the browser can be somewhat limited if you are confined to the basic events outlined by the DOM. This example JavaScript extends the work by Geek Daily to allow for multiple subscribers to the event. I … Continue reading

Posted in : JavaScript | Tagged : , | Comments Off on Raising Custom Events in JavaScript

Automating JSLint Validation

JavaScript validation doesn’t need to be painful, but can be if the only test we use is to run it in the browser and hope it works. Enter JSLint a powerful testing library for JavaScript written by Douglas Crockford. To … Continue reading

Posted in : JavaScript, Testing | Tagged : , , , | 2 Comments

Mouse Events Are Not Sufficient

Don’t forget basic usability! While using a site today I came across an issue that’s all to common, especially with poorly built tools, interfaces that are designed for desktops and fail to degrade gracefully to older or alternative browsers. While … Continue reading

Posted in : UX Design, Websites | Tagged : , , , | 1 Comment

Setting and Reading Cookies in JavaScript

Surprisingly jQuery doesn’t have a built in method for managing browser cookies. There are many plugins available, but when possible, I prefer to stick to the core library. The main reason for this is so I can use the Google … Continue reading

Posted in : JavaScript | Tagged : , | Comments Off on Setting and Reading Cookies in JavaScript

Validating Credit Card Numbers

The easiest way to pre-verify a credit card value is entered correctly is to use the Luhn algorithm to check for mistakes. This is commonly referred to as a mod-10, mod10 or mod 10 check. It’s always important when handling … Continue reading

Posted in : jQuery, PHP | Tagged : , , , | Comments Off on Validating Credit Card Numbers

Using jQuery UI’s Autocomplete to Populate a Form

It’s been a year and a half since I last posted about jQuery autocomplete. It’s come a long long way since then. In fact it’s really incredible now. The jQuery UI team has provided event hooks throughout the entire process … Continue reading

Posted in : JavaScript, jQuery, UX Design | Tagged : , , , | 83 Comments

Graphing Without Flash

I put this deck together to explore SlideShare in more depth. Of course, meaningful content is always more helpful so this slideshow has a number of excellent tools for creating dynamic graphs without using Adobe Flash which is not supported … Continue reading

Posted in : Flash, Technology, UX Design | Tagged : , , , , , | Comments Off on Graphing Without Flash

Keyboard Event Handling with FBJS

FBJS event handling does not follow the default Facebook JavaScript event handling model exactly. Facebook re-writes the event object as a far more limited object, meaning you have access to less information than you would in a true Javascript environment. … Continue reading

Posted in : FBJS, JavaScript | Tagged : , , , , , , | Comments Off on Keyboard Event Handling with FBJS

‘Tis the Season of the New TV

Televisions are always a hot topic for holiday purchases and this year is no different. I was reviewing my Google Analytics numbers for AF-Design this morning and saw the annual spike in traffic to my television size calculator. This calculator … Continue reading

Posted in : JavaScript, Metrics, Technology | Tagged : , , , | Comments Off on ‘Tis the Season of the New TV