Archive for April, 2010

Friday, April 30th, 2010

The SWITCH Statement

The if statement isn’t the only way that javaScript can make decisions. While an if statement can decide between true and false, the switch statement can test a single field for any number of different values and provide a different processing path for each. The SWITCH Statement

Thursday, April 29th, 2010

Linking to Other Pages via a Drop Down Selection Box

A drop down list is the easiest way to provide links to a lot of different pages in a small space on your web page. In this article I not only show you how to set up a drop down list and how to link the selection to the other pages using JavaScript but I […]

Wednesday, April 28th, 2010

RESTful Web Services Cookbook

One of the core components of any web application is the HTTP processing that is used to pass information back and forth between the client and the server. This book will help you to use the right processing for your task. RESTful Web Services Cookbook

Tuesday, April 27th, 2010

HTML & CSS The Good Parts

With any language that develops over time there are both good parts and bad parts. Things originally thought to be a good idea at the start turn out not to be. The difficulty comes in being able to tell the difference, as this book clearly demonstrates. HTML & CSS The Good Parts

Monday, April 26th, 2010

Building Web Reputation Systems

This book will help you to decide whether a reputation system is appropriate for your site and if so what sort of reputation system it should be. Building Web Reputation Systems

Saturday, April 24th, 2010

Country Selection Drop Down Box

One of the biggest dropdown lists that you are ever likely to want to install into your web page is one to allow your visitors to select the country that they are from. To save you the trouble of setting up your own select with over 200 options I set up this JavaScript generator that […]

Sunday, April 18th, 2010

Image Gallery

This unobtrusive JavaScript demonstrates how you can add image gallery rollover effects to your web page and still keep all of the JavaScript in a completely separate file. Image Gallery

Saturday, April 10th, 2010

What is a GDG?

For some unknown reason when I first started writing mainframe JCL articles I ended up writing quite a few about Generation Data Groups of which this one was the first. What is a GDG?

Thursday, April 8th, 2010

A Shorter IF Statement

While a conventional if statement is relatively easy to read, it can be a bit long-winded in what you need to type in order to make decisions. Where the decision that is to be made is which of two or more possible values is to be assigned to a specific field, JavaScript provides an alternative […]

Wednesday, April 7th, 2010

Nesting If Statements

Sometimes there are more than two possible outcomes that you want to process depending on which particular combination of conditions apply. By nesting if statements inside of other if statements you can tell JavaScript which outcome to apply when the appropriate combination of decisions are made. Nesting If Statements

Monday, April 5th, 2010

Paypal IPN Script – Multiple Products from One Form

A minor change to the code of my Paypal IPN script (one extra line of code) means that it can now handle multiple product processing from the one form using checkboxes to select the products. You just need to have files for all the combinations to be able to send any combination as a single […]

Sunday, April 4th, 2010

Multiple Tests – And, Or, and Not

Continuing on the series of tutorials on Making Decisions in JavaScript, this eighth tutorial looks at the logical operators AND, OR, and NOT and how they can be used to combine conditions together into a single test. Multiple Tests – And, Or, and Not