Archives

Viewing by category: CFForm (58 entries)

Sep
28

Quick grid bindings

52 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

43 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 |
Sep
09

Consuming a Web Service through Flash Remoting and CFForm

18 comments Posted by: Laura

One of the lesser-known features of the Flash Remoting gateway is to act as a proxy to a web service. Using this proxy, you can effectively circumvent the cross-domain restrictions in the flash player, as all calls are local to the flash movie.

It turns out to be very easy to make the call. It is almost exactly the same as calling a local CFC

read more Category: CFForm | ColdFusion | Flash Remoting |
Aug
25

Introduction to Flash Remoting

59 comments Posted by: Laura

From our current poll on your opinion about Flash Remoting with CFForm, it is clear that most of our readers are excited about it. There are others, however, that either find it too complex or do not know what Remoting is.

I will try to help both groups by explaining what Remoting is and how it can be used.

read more Category: CFForm | ColdFusion | Flash Remoting |
Aug
21

Enabling and disabling validation in cfform

64 comments Posted by: Laura

Built-in validation in cfform is great, but sometimes, it is a little inflexible. What happens if we want to require a State field only if the Country field is US? There is no "built-in" way to specify such a thing. But there is a simple technique we can use. As always, use these tips only if you know what you are doing ;), as they may have side effects.

read more Category: CFForm | ColdFusion |