js

Undefined versus Null

Many beginner level JavaScript books and tutorials gloss over the difference between JavaScript’s ‘null’ and ‘undefined’. Some even say they are the same thing. They are, in fact, quite different. After reading this article you will understand the difference, and know how to code for it.

Read full story Comments { 4 }
Colour Scheme Designer

Help for the Colour Challenged

While most of us are aware of the importance of colour, very few of us understand how to use it effectively in our websites and applications.

A particularly challenging task can be the selection of a set of colours that work well together – colours that compliment, not clash with, each other. Here’s a short article which will introduce you to to an excellent online colour selection tool.

Read full story Comments { 3 }
Full Screen

Full Screen HTML5 Canvas

Sometimes you want your HTML5 Canvas application to occupy 100% of the browser screen. Unfortunately this isn’t quite as simple as it should be.

Ideally you would set the canvas element’s width and height attributes to 100% and that would be the end of it – no such luck. Fortunately, there is a 3 step workaround, and this article explains the details and shows you the code.

Read full story Comments { 3 }

Save Table Tip

I don’t like it when “features” get in my way! Here’s a good example, courtesy of SQL Server Management Studio 2008. When attempting to save changes I had made to a table, I was presented with a grumpy “Saving changes is not permitted” warning.

According to my good friend Google, this has caused quite a few headaches for other developers.If you’re one of them, read on!

Read full story Comments { 0 }
http

‘Save As’ Using a HTTP Header

There are many situations where you may want to create a link to a document (a PDF version of a report, for example), but you want to present the end user with the browsers ‘Save As’ dialog and control the file name.

This is pretty easy to accomplish using the ‘Content-Disposition’ HTTP header. Let’s have a look at this header first, and then look at an example of it in action using C# code.

Read full story Comments { 0 }