Enumerating with Ext.js

Categories: Javascript

One of the features of the prototype library that I like to use is the Enumerable class.  Although highly debatable in regards to the legitimate necessity for such class, I like the simplicity and beauty of using Prototype’s enumerable class.

So, when using Ext as a base library (not using the Prototype adapter) for JavaScript DOM manipulation I looked into the enumeration methods available, such as Ext.each().  Here is a quick overview of how I used Ext.each to traverse members of a collection of HTML nodes.  I decided to split this up into main topics; first I will talk about why I like to use the enumerable class, and then show you a simple example of using the Ext.each() method.

Read More

Set cfwindow title from cfgrid

Categories: ColdFusion, ColdFusion 8, Ext, Javascript

If you are using ColdFusion 8’s <cfgrid> tag for a CRUD interface you might be utilizing the editable grid feature or you might be utilizing the <cfwindow> tag.  Because of some of the limitations of inline editing, such as the lack of a rich text editor, I am using <cfwindow> for a project and here is how I am setting the title programmatically from the <cfgrid> binding.

Read More