chapter31

development in a land far far away…

at the moment

History is not what happened. History is what was written down.

Archive for December, 2006

Outputting content from within a method

Tuesday, December 12th, 2006

Normally I’m with the crowd who says “don’t output content or use <cfinclude> from within a function”. Like a lot of people I would much rather return whatever value I need to the calling page/function, so that I then have a choice with what I want to do with it.
Still, the other day I found [...]

Read the rest of this entry »

Including js files from within js files

Thursday, December 7th, 2006

I’m working on an application which stores a lot of data in the application scope. Part of the data stored is a config CFC that has a method which loads ‘external assets’ (javascript and css files etc) into the <head> of the html document via <cfhtmlhead>. I love that tag
My part in this [...]

Read the rest of this entry »

Snap is a nice little search engine which displays your results in a left window pane and a site preview of your search result in the right. It’s very Ajax-y and includes personalised settings, email a friend, result ratings and more. They even made the Time 50 coolest websites of 2006.
Snap is also a free [...]

Read the rest of this entry »

Viewing AJAX generated source code

Monday, December 4th, 2006

When developing for the web there is often a need to view the (X)HTML source code of a page to see exactly what ColdFusion (or your server side language of choice) is generating from the server.
One of the problems you might face is when viewing the source code of an AJAX generated event. Of [...]

Read the rest of this entry »