all groups > coldfusion flash integration > august 2005 >
You're in the

coldfusion flash integration

group:

3 (Simple?) Flash Forms Concerns



3 (Simple?) Flash Forms Concerns ckbentdesigns
8/13/2005 10:32:42 PM
coldfusion flash integration: Just discovered and installed a trial for the latest ColdFusion release. I love
the Flash forms, but have there concerns...

FLASH FORMS ALIGNMENT

I have a tabnavigator form for a shopping cart checkout process. The first tab
is the form, the second tab simply uses the "bind" feature to print out all the
data entered by the user on the first tab; it's a "Review Before Submitting"
page of sorts. The problem is, I want to format the data on the review page
into two columns. I can do it using an "hdividedbox" setup, but that displays
an annoying resizing bar between the two columns. Here is how my code for the
review tab is currently set up using "hdividedbox":

[CFFORMGROUP TYPE=HDIVIDEDBOX]
[CFFORMGROUP TYPE=VBOX]
content for first column as cfformitem with bind
[/CFFORMGROUP]
[CFFORMGROUP TYPE=VBOX]
content for second column as cfformitem with bind
[/CFFORMGROUP]
[/CFFORMGROUP]

BINDING CONDITIONALS

Is there a way (and documentation) to do conditionals on Flash forms binding?

Using my form example above, I'd like to print something on the review page if
the user hasn't completed any of the form yet.

CFFORM HEIGHT PROBLEM

In the sample Flash form I'm programming I didn't specify any height, only
width, figuring that Flash would determine how much height the form needed to
take up. I then put some images in pure HTML below the closing form tag. When
previewing in a browser it seems like the HTML content is shoved further down
than the Flash form is using space-wise, therefore leaving this huge white
space between the form and other content. I can specify height and width
attributes in the CFFORM tag, but one of my tabs on the form uses CFGRID to
return shopping cart contents, therefore height will vary. Does anyone have any
ideas?
Re: 3 (Simple?) Flash Forms Concerns ckbentdesigns
8/13/2005 11:33:15 PM
Another problem... I'm trying to remove the lines dividing colums in a CFGRID
using the attached code...

...but it's not working.

It's also a little annoying that there's no padding between the lines and the
cell content in CFGRID.



<CFGRID NAME="test_grid" FORMAT=FLASH FONT="Tahoma" FONTSIZE="11" QUERY=
"shopping_cart" ROWHEADERS=NO HEIGHT=100 GRIDLINES=NO>
Re: 3 (Simple?) Flash Forms Concerns walker25419
8/14/2005 12:00:00 AM
If you want to see what style attributes you can control, gridlines for
instance, I recommend you visit http://cfpim.coffeeflower.com/stylemanager/

As for the conditional statement, I have an app where I use the following:

<cfsavecontent variable="deactivate">
list.enabled = (device_name.length < 1) ? true:false;
</cfsavecontent>
<cfinput onchange="#deactivate#" name="device_name" >

If nothing is typed in the text box "device_name" the select list "list" is
live, otherwise it deactivates the select list. You could use this same
approach if you were keying on a single field. Although I haven't tried it, I
suspect if the fields were required you could test for an eror and have a
message appear on the review page. Just a thought.

Steve

AddThis Social Bookmark Button