Archives

Viewing by month: September 2005

Sep
30

Bindings to the rescue: Changing an input label

33 comments Posted by: Laura

I just read this post by Paul Roberston, Dynamically change a cfinput form field’s label. I agree that the way the input is generated into mxml does not make it easy to access the label. However, I think there is a simpler solution to the problem. Granted, this solution does not give you a "direct" pointer to the label, but it does change the label as needed.

read more Category: CFForm | ColdFusion |
Sep
30

Don't make me think! short review

2 comments Posted by: Laura

First of all we’d like to thank Michael White for sending us a gift from our wish list. We are so happy! It is the first time a reader other than my mother gets us a present (I don’t think my mother reads us anyway)

High in our wish list was a book about usability for the Web: Don’t Make Me Think! A Common Sense Approach to Web Usability. This book is great. It’s just so easy to read you’ll go non-stop and finish it in a day. Not only has very practical advice but also it’s very fun to read.

If you are interested, there is a sample chapter available at the writer’s website.

Thanks Michael!

Category: Software Engineering |
Sep
29

More quick bindings

63 comments Posted by: Laura

Or "Why I love functions".

In my previous post, Quick grid bindings, I showed how to use a custom function, applyFilter, that I had described earlier.

Some readers asked how to change the first grid to a tree, then to a dropdown. Just because I like to be ahead of things, and to show how easy is to reuse a function once you have created it, I threw in a repeater with radio buttons as well.

read more Category: CFForm | ColdFusion |
Sep
28

Quick grid bindings

58 comments Posted by: Laura

It turns out that the function described in the previous post is useful for other things besides "filtering as you type". We can use it to "filter" a grid based on the selection of another grid, that is "bind" a grid to another. The process is very similar to what you would do in multiple selects related, and although the function will not work for selects because it uses datagrid's specific methods, it could be easily modified to do so (if you need multiple selects related, check this post ).

read more Category: CFForm | ColdFusion |
Sep
27

Filtering a grid as you type - using functions

48 comments Posted by: Laura

With the CF Updater 7.01 we have now the ability to make our own functions, which are available from anywhere in our form. The biggest benefit is that the function will be ready to use as soon as the form loads. In the past, we could only add ActionScript code in the "on" handlers, such as the onclick of a button. That meant that we could not use the functions we declared until that button was clicked, or we had to resort to the onload hack. Moreover, declaring functions by the old method (myfunction = function(){}) required us to use _root to refer to our controls or some other scope workarounds (such as writing var myControl = myControl before the function definition) because the controls would not be in the function scope, making it very difficult to understand why some things would not work and creating really ugly code by using _root everywhere.

read more Category: CFForm | ColdFusion |