Another Product from Google

Google has just released Google Talk, an instant messaging and voice over IP client. It can be downloaded for free. The download was incredibley small, especially when compared with MSN Messenger and similar services. Google Talk doesn’t have any adds or stupid features you never use. It’s small, light-weight, and fast. One thing I would have liked is a feature where you could communicate with contacts that are using other services such as AIM, Yahoo IM, and MSN Messenger. But hopefully all my friends and family will use it soon so that I can get in touch with them through Google...read more

AMFPHP 1.0 Ready

AMFPHP (Flash Remoting written in PHP) has hit a stable version 1.0 release! I’ve been looking forward to this for a long time. Flash Remoting is a method of transfering data to a Macromedia Flash Movie. It sends it in binary format and is much easier to use as it arrives in an object form, meaning, you don’t have to sort through the child nodes of an XML object. I have been using AMFPHP for over a year on several projects (being one of the main backend developers in my company, mediaRAIN) to send stuff. I created the logo storage of LogoMaker/InstaLogo using AMFPHP which handles,...read more

From Text to Node

I have created a method that assists in creating your HTML elements in Javascript. textToNode takes a string of text and converts it into a DOM element which you may then use for insertion. It's much easier to use than creating each node seperately, adding attributes to it, then appending it to the parent. It also works for table elements (tr, td, etc.) and the option element in a drop-down box. This was created for DOMClass objects but has been very nice for creating elements on the fly. It is as easy to use as the innerHTML property of an element, but it works with table elements etc. and...read more

setProperties

One of the simple and very useful pieces of code in Pherret (a PHP 5 framework) is the setProperties() function in the base Object class. The name originally came from Java Beans and works in a similar manner. I'm sharing it because it could be used in any code with PHP 5 or PHP 4. First, here is the problem being solved. Do you ever find yourself setting and object (or array, or variables) from a HTTP post in the following manner? $user = new User(); $user->firstName = $_POST['firstName']; $user->lastName = $_POST['lastName']; $user->address = $_POST['address']; $user->city...read more

Class for the DOM

It's alive!! I have created a very cool, very simple, function to create new javascript objects that are (not just act upon) HTML DOM elements. Let me explain. Say I have a cool new tree menu I'm creating (true story), and I want others to be able to just start creating the menu items and adding them in via javascript if they need to. The ideal way would be to just say myItem = new MenuItem('Cool Item'); and have it return to me the actual menu item (the TR tag or LI tag) which can be inserted into the menu. No more of this element wrapper stuff. I don't want to code my classes to act upon a...read more