When implementing an HTML form that requires validation, a developer must make a decision: should I use client-side validation, server-side validation, or both?
In this article I will give a quick overview of the pros and cons of these validation techniques, as well as introduce my solution to the problem: Pajama.
Cookies are ubiquitous on the web. They’re used to store usernames, login tokens, shopping cart contents, and so on. In libraries, cookies are typically modeled as name-value pairs. An API consumer requests a cookie using a known name (e.g.
$.cookie('user') in jQuery with the Cookie plugin) and the library returns a string (e.g.
|| perform short-circuited evaluation. Essentially, this means that a program, when evaluating boolean operators, will only evaluate as many arguments as is necessary to determine the value of a boolean expression. Sometimes, however, this is not the behaviour we want.
This article assumes you have read the first part of this series.
You may not know this, but whenever you use jQuery commands like
delay, you are implicitly making use of a jQuery queue behind the scenes. That queue is named
fx, and it is the default queue that all animations use unless otherwise specified.
In this article, we will look at how jQuery animation queues work, how to create and manipulate them, and how to use them in a meaningful way.
For his 1986 book The Blind Watchmaker, Richard Dawkins developed a program that created “biomorphs”: virtual creatures created by a computer simulation. The simulation, called Biomorph, was developed in order to demonstrate the power of natural selection.
jQTouch is a pretty nifty little jQuery plugin for making websites look like native iPhone apps. Unfortunately, beyond a bunch of examples included with the distribution, there’s not a whole lot of online documentation written for jQTouch. Having started to use jQTouch for a professional project, I thought I’d help remedy this deficiency by posting what I learned along the way.
This is part 1 of a two part series.
If you’ve ever needed to do more complex animations than fades and slides, then you’ve probably encountered the jQuery
animate function. The
animate function allows you quite a bit more flexibility than just using
slideDown. In fact, the oft-used fades and slides simply wrap calls to
If you’ve ever looked at the jQuery
animate docs at api.jquery.com you might have noticed that one of the optional arguments you can define is
step which is defined as:
A function to be called after each step of the animation.
…and that’s it. If you search for “step” on the page, you won’t see another mention of it.