Formatting a multi-level menu using only one query
In the programming forum (dutch) on Gathering of Tweakers I often see people struggeling with multi-level menu's stored in a database and the formatting of such menu in HTML.
This is actually quite a common programming problem that can be solved using some kind of recursion or stack-based processing in order to create a tree out of a flat datastructure containing parent-child relations. However, in most cases the final solution that is presented involves seperate queries being executed inside a loop or inside a function that is called recursively which retrieves the child-elements for a specific parent. In situations where the menu has many items and/or has many levels this could easily result in dozens of queries being executed only to generate something simple as a treelike-output.
I would like to show you how this can be done using only a single query.
Read more »
This is actually quite a common programming problem that can be solved using some kind of recursion or stack-based processing in order to create a tree out of a flat datastructure containing parent-child relations. However, in most cases the final solution that is presented involves seperate queries being executed inside a loop or inside a function that is called recursively which retrieves the child-elements for a specific parent. In situations where the menu has many items and/or has many levels this could easily result in dozens of queries being executed only to generate something simple as a treelike-output.
I would like to show you how this can be done using only a single query.
Read more »
Banners en browsing performance impact 
Het zal niemand verbazen dat reclame op websites (banners) een negatieve impact hebben op de 'browsing performance': je moet immers meer data ophalen en dat moet ook nog eens allemaal gerendered en getoond worden door je browser.
Lees verder »
Lees verder »
A Dutch Front-End Organisation in the make
On July 2'nd Peter-Paul Koch (better known as the quirksmode.org-man) presented his ideas for a front-end organisation (he calls it a 'guild' after the midieval monopolistic guilds). My first thoughts after reading the program were that this was nothing more than an attempt to introduce some sort of self-proclaimed elite-status for it's members to get an advantage over other parties when presenting themselves to big employers such as the Dutch Government.
Read more »
Read more »
Microsoft, where are you?
Alex Russell asks "Where are we now?" a year after the introduction of IE7. Now that IE7 is slowly taking over the landscape from IE6 it is time to look forward again. After all IE7 didn't bring us much new, it just barely managed to take the edges off of the pain we developers have been enduring with IE6 for a long time.
Read more »
Read more »
Crossbrowser Array Generics
I briefly demonstrated how one can use an array method on non-array objects such as nodeLists or the arguments variable in my previous entry on getElementsByClassName (and Menno van Slooten did me a favour by explaining it on his blog). I also used the Array generic Array.filter there and left those with a promise to explain how these techniques can be implemented crossbrowser.
Read more »
Read more »