What to do with AJAX and what not to

AJAX is one the nicest concept I’ve seen in web development. The basics are simple and quite easy to use.
There are a lot of AJAX frameworks around like jQuery, Prototype and backbase. These frameworks help you create an AJAX application with ease.
But is AJAX really that good? No, but if you use it correctly, it is!

In this article I wish to share my view on AJAX and the possibilities it gives to web developers and designers, and why AJAX is wrong in several situations.

[![What to do with AJAX and what not to](/articles/what-to-do-with-ajax-and-what-not-to/ajaxpost.jpg “What to do with AJAX and what not to”)](/articles/what-to-do-with-ajax-and-what-not-to/)
Read more

Customize the default alert() function of Javascript

Web designers, developers and web users know them. We all have run across one of these; the Javascript alert message. Most of the time, I don’t even read them and click them away. But the more important thing is that they just look ugly, no matter which browser you use.

So why not remake the whole Javascript alert function? This article will give you the basics of my customization of the alert message.

[![Customize the default alert() function of Javascript](/articles/customize-the-default-alert-function-of-javascript/gdalertintro.jpg “Customize the default alert() function of Javascript”)](/articles/customize-the-default-alert-function-of-javascript/)
Read more

Album art which boosts my inspiration

Today I was scrolling through albums I got, and I thought that some album covers just look amazing.

Some of these album covers really want to make me listen to the album. I thought I’d share some with you. If you feel like you can add a nice one, put it in the comments below.

[![Album art which boosts my inspiration](/articles/album-art-which-boosts-my-inspiration/inspirationboosters.jpg “Album art which boosts my inspiration”)](/articles/album-art-which-boosts-my-inspiration/)
Read more

Download counter in PHP using .htaccess

Ever had this thought: “I want to fire something *extra *up when somebody downloads a certain file.”? This can be easily fixed by making all you download links link to a php page and output the download file for you. But what if the file is called directly in the browser, say http://gaya.github.io/scripts/photonav/photonav.zip? Apache will happily give the file to the user, without me noticing it. Luckily for us, .htaccess is a great place to mess around with Apache.

This article will explain how to make pre-download conditions in php using .htaccess. I’ll make a download counter in this one.

[![Download counter in PHP using .htaccess](/articles/download-counter-in-php-using-htaccess/downloadcounter.jpg “Download counter in PHP using .htaccess”)](/articles/download-counter-in-php-using-htaccess/)
Read more