Multiple Drupal Sites on One GoDaddy Economy Hosting Account

Have you ever been lured by cheapness of GoDaddy Economy Hosting to host your Drupal websites? Did you then find out that they allow multiple domains but all of these domains need to point to one website, i.e one code base in the root folder? I have. But here's a neat little trick to have a different code base for each site.

Deploying clckwrks In a Shared Hosting Environment: Preparation (Tested on Bluehost)

This post is the first in a series that will chronicle my efforts to get involved in the development of the clckwrks Haskell web development framework. It will describe how to get the development environment set up on a Bluehost shared hosting server. After doing this, the getting started guide on clckwrks.com can be followed to get clckwrks going.

jQuery Event Handling: Preventing Double Bindings

This post will show you how to deal with situations where event handlers are bound to elements more than once, causing multiple reactions when an event is triggered.

Two solutions will be covered:

  1. Using unbind() to clear previous bindings.
  2. Adding a class to the element after the first binding.

Consider the following snippet that binds a click event to a span tag. Depending on the placement of this snippet, two or more alerts may be spawned.

$("span").click(function () {
  alert("Clicked");
});