Sometimes you need to cache data, most of the time you'll be wishing you could cache data easily. Server-side data caching is an incredibly complex topic, and one that has a multitude of possible solutions. But a lot of the time you just need a caching system that's simple and works.

To address this issue in a search engine that I am working on, IntraSITE Search, I wrote a very simple and versatile caching system that only requires that your PHP script has disk write access. The code works beautifully and transparently, adding caching to a pre-existing system may only require the addition of 4-5 lines of code!

Read more...

Setting up a menu system is a task that most web-developers / designers have to perform on nearly every project they complete. Choosing the right menu system can have a profound impact on the usability, accessibility and appearance of the project.

Most of the JavaScript based menu systems floating around the web have some major failing. Many of them push a particular look and feel on their users. Most of them force you to use an invalid HTML layout or worse yet, define the menu structure in JavaScript (this means that search engines and people using screen-reader won't be able to access the menu!).

After trying a multitude of different solutions I decided that I should write my own system and implement my recommendations along the way.

Read more...

Although it’s not something that needs to be done commonly, sometimes it can be very useful to be able to retrieve GET parameters from the URL of the current page using JavaScript.

To make life easier I have written a short piece of code that extends the "window.location" object to allow you to retrieve GET parameters using their key name

Read more...

In JavaScript any list of elements returned by a DOM method is returned as a NodeList object. The NodeList object is very similar to a standard array in a lot of ways, but different enough that they can throw you for a loop if you aren’t watching what you’re doing.

In this article I am going to cover a few of the important differences between NodeLists and Arrays and several methods for solving the problems they can create.

Read more...

Although it seems like it should be simple many newcomers to XHTML / CSS get stuck on this. Here I show you a quick and easy way to turn an Unordered List ( the HTML <ul> tag ) into a horizontal menu.

Read more...

Master style sheets are a big time-saver when you code websites for a living, they also help ensure that you cover all the bases when it comes to styling the less used and often overlook elements. A properly designed style sheet can even reduce the time it take to perform maintenance and updates!

Read more...
Results 1 - 6 of 16