rbredlau's blog

Process PHP Forms Like A Champ : Part II

Process PHP Forms like a Champ -- Part II : Cleaning Up Hello Form

Synopsis

This article addresses some of the missing items from the simple form introduced in Part I. The reader is assumed to have read Part I and a basic knowledge of PHP.

Data Transformation

Synopsis

Data transformation is an integral operation of most useful programs. Often times we want to convert data of one type to another or from one format to another. Data transformations typically encompass specific operations; the danger is that when implemented incorrectly our applications become static and inflexible.

In this article I will present my initial thoughts on a flexible solution to data transformation; more specifically I will be using the command design pattern. Examples will be provided in PHP5.

Process PHP Forms Like A Champ : Part I

Process PHP Forms like a Champ -- Part I : The Hello Form

Synopsis

I constantly see the same questions, problems, and scenarios arise in programming forums when it comes to creating and processing web forms. My goal with this series of articles is to give all beginning programmers the foundation necessary to solve 99% of problems they will encounter while processing forms.

How I Installed Photoshop CS2 on Ubuntu 7.10 (Gutsy Gibbon)

I'll keep this really short. I discovered how to install CS2 from the CD. No existing Windows installations. No registry-work. No bit torrent.

You need to have wine installed before you continue. I won't cover that here, there's plenty of good documentation on that subject already. You do need to know where your "Windows c drive" is located; for me it was /home/USER/.wine/drive_c. I used wine version wine-0.9.49

Creating a Javascript Singleton

Synopsis

This article will demonstrate how to create a singleton for use in Javascript programs.

Singleton?

In object oriented programming, a singleton is a class that is instantiated only once. Most programmers find the idea of a singleton counter-intuitive when first introduced to them. Most of the time, we create classes so we can create many instances of them; after all, it doesn't make much sense to create a database application that can work with only a single employee at a time.

Rich Text Editing: Part II

Synopsis

In the previous article I discussed dynamically creating an iframe to be used as the input area for a rich text control; the focus of this article is to attach event handlers to the iframe.

There are at least two good reasons for capturing events on the iframe. The first is that if you are authoring a rich text control, then you will need to capture some of the iframe events so that the toolbar is appropriately updated when the user clicks in the editing area. For example, if the user clicks in the middle of a bold word, you will want to depress the corresponding icon on the toolbar. The second reason is that the client application of your rich text control may want to attach event handlers to your object; in order to provide this functionality, your control will have to export this functionality.

A working example can be seen here.

Rich Text Editing: Part I

Synopsis

This article details how to create an iframe to use as a replacement for a <textarea>; the iframe is intended to be the destination for user input in a rich text control.

A working example can be seen here.

First!

This blog will be used mainly as a forum for sharing my programming knowledge with the rest of the world. Hopefully you'll find the information here useful.

Syndicate content