Archives

Viewing by month: May 2005

May
30

Looping over the records of a large cfgrid

20 comments Posted by: Laura

I mentioned in the post Adding the values of a cfgrid column that if we need to loop over many rows in the cfgrid, we may receive the "A script in this movie is causing Flash Player to run slowly" alert from the Flash Player. In order to avoid that, we'll separate the task in frames:

read more Category: CFForm | ColdFusion |
May
23

Adding the values of a cfgrid column

24 comments Posted by: Laura

We were asked about solving the problem of adding the values of a column in a flash cfgrid, so we made an example in response.

The cfgrid shows the items of a shopping cart. The quantity column is editable, so we can change the number of items we want to buy. Then, we click "Calculate Order" and the total shows at the bottom. Although we are triggering the addition at the button's onclick event, we could do the same at the cfgrid onchange. The relevant part is when we get the column value and add it to the total.

read more Category: CFForm | ColdFusion |
May
15

Alert box for cfform

56 comments Posted by: Nahuel

This is a simple example where an alert box is displayed to the user before performing a critical operation. It is sometimes necessary to have a confirmation from the user, so we'll use an alert to do it. If the user clicks on "Yes", we continue, otherwise, we cancel.

read more Category: CFForm | ColdFusion |