Groups | Blog | Home
all groups > coldfusion flash integration > july 2005 >

coldfusion flash integration : ANOTHER FLASH FORM FLAW


drforbin1970
7/27/2005 12:00:00 AM
Here's another flaw. I tried to set the width and height of a CFFORM
dynamically - but you can't!!!

var w = System.capabilities.screenResolutionX
var h = System.capabilities.screenResolutionY

<CFFORM width="{w}" height="{h}">

DOES NOT WORK! YOU GET AN ERROR.

Works with almost any other tag, why not one of the most important ones???

drforbin1970
8/3/2005 12:12:38 AM
Here's another flaw. I tried to set the width and height of a CFFORM
dynamically - but you can't!!!

var w = System.capabilities.screenResolutionY
var h = System.capabilities.screenResolutionX

<CFFORM width="{w}" height="{h}">

DOES NOT WORK! YOU GET AN ERROR.

BUT - you can dynamically set the w/h of a CFFORMGROUP tag, like so for a
tabnavigator form:

<CFFORM name="admin_main" format="Flash" skin="haloGreen"
style="display:inline;" target="bottom">
<CFFORMGROUP type="tabnavigator"
width="{System.capabilities.screenResolutionX}"
height="{System.capabilities.screenResolutionY}"
style="fontSize:12px;fontFamily:Verdana;" >
<cfformgroup type="page" label="Users"
style="fontSize:12px;fontFamily:Verdana; horizontalAlign:center">
PAGE 1
</cfformgroup>
</cfformgroup>
</cfform>

This sets the Flash form to browser width/height when the form loads. Should
solve those annoying multiple scrollbar problems. You can also subtract or add
to the w/h:

{System.capabilities.screenResolutionY - 50}

Hey techs! Works with almost any other tag, why not with CFFORM??



AddThis Social Bookmark Button