Christian Heilmann

You are currently browsing the archives for the Tips & Tricks category.

Archive for the ‘Tips & Tricks’ Category

CAPTCHA Alternatives for a commercial product?

Tuesday, December 13th, 2005

Right now I am working on a project that will be a paypal-esque financial application, and of course security is a big issue with this one.

We had a great meeting talking about security measures that could be added to the forms to ensure that only real users will be able to log-in.

I collected the ones I could think of based on the W3C whitepaper and own experiences and this is the list with pro and contra for each of them: (more…)

Shorter DOMscript via cloning vs. generating elements

Thursday, December 8th, 2005

cloned sheepI just looked through some of my older scripts and other people’s code and realised that a lot of time we bloat our methods by repeating the same functionality.

This is especially true when it comes to generating a lot of HTML via the DOM.

We keep repeating the same document.createElement and setAttribute lines over and over. Wouldn’t it be more efficient to create those once when initialising our script and then cloning them? (more…)

DOMCollapse fixed for Safari – create unobtrusive collapsible page elements without knowing JavaScript

Tuesday, December 6th, 2005

I just updated DOMCollapse to support Safari and use proper DOM2 unobtrusive event handling.

If you don’t know it yet, DOMCollapse is a script that allows you to turn any page element into a trigger, that shows or hides the following element, by adding a CSS class to it.

Enjoy and please check for bugs.

Tested on MSIE 6, Firefox 1.07, Firefox 1.5 and Opera 8 on PC and Safari on Mac.

Comment at the original DOMCollapse post

How to create a CSS Toolshed submission – step by step

Friday, December 2nd, 2005

It has been quite a while since I started the CSS Toolshed, and I expected a lot of submissions after hundreds of people downloaded the templates, but now – more than two weeks later – I only got one good submission to show.

OK, I get the message: I cannot expect developers to work in conditions like these to submit something for a project they don’t get any money from. It is frustrating enough having to deal with these at work, but at least there is a paycheck in it.

So, to make it a bit easier, I updated the templates pack to include

  • all the necessary images
  • more templates containing almost all elements of the building block gallery
  • pre-defined CSS selectors with all the content elements

As the pièce de résistance, I created a new demo design called Happy Cock and wrote down what I was doing while developing it.

So if you need to get an insight as to how to create a CSS Toolshed entry (or simply a flexible CSS layout) go and read:

Hopefully this will help the toolshed get some more submissions, I’d hate simply to let it die…

Blogs, Lists, Mags, Forums, Feeds? Where do you get your webdev juice from?

Wednesday, November 30th, 2005

I remember finding A List Apart and Evolt.org very early in my career and it helped me heaps, and I learnt a lot from the Forums on Sitepoint.com and really way back at experts exchange. I’ve also been a regular on the list and CSS-Discuss for some years and on IRCnet in since almost 1997.

And lately I must say I am getting the feeling that we are grinding down to a halt. It is not a matter of content in most cases, it is a matter of style and etiquette in asking and answering. (more…)