AMFPHP 1.0 Ready

AMFPHP (Flash Remoting written in PHP) is almost ready to hit a stable version 1.0 release! I’ve been looking forward to this for a long time. We’ve already used it at 4.4 million posts to a remoting service in one month.

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.

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.

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.

Creating Objects (4 of 5)

In the previous three object oriented programming articles written for jacwright.com, we introduced object oriented programming, spoke of thinking about a system object oriented, and discussed the importance of planning, even if only in one’s head. The next two articles, Creating Objects and Reusing Objects, delve into the meatier subject of writing objects. We will be discussing how to implement the plans we’ve made and the systems we’ve conceptualized. Without these principles, object oriented programming can become a mess instead of a blessing.

Coming Soon

I have been working on a project recently which has had a shorter than comfotable deadline (working long hours, weekends, etc.). For this reason I haven’t had time to upkeep the site as I would like. The information on Pherret is outdated, and there is not a good (recent) download of the framework. However, for better or for worse, the deadlines are coming this week and the following. Because of this there will not be any article this week. I hope to be able to get back on top of things at the end of this week or the end of next week. I should be able to update the information, perhaps even get some documentation going, and put some downloads of Pherret and Arras up. Thank you for your patience!

« Previous Page — Next Page »