Well everything was looking great until my last panel and for some reason
the panel will not expand and for the life of me I cannot figure out why
its doing this.
Here is how I am using the example below in my form.
I created the function to close all the cfformgroups on the form load.
function hidePanel(){
_root.pan1.visible = Destination1.value;
_root.pan1.height = -1;
_root.pan2.visible = Destination2.value;
_root.pan2.height = -1;
_root.covPan1.visible = coverage1.value;
_root.covPan1.height = -1;
_root.covPan2.visible = coverage2.value;
_root.covPan2.height = -1;
_root.leavePanel1.visible = leave1.value;
_root.leavePanel1.height = -1;
}
function addLev1(){
if(leave1.value != false){
_root.leavePanel1.visible = leave1.value;
}else{
_root.leavePanel1.visible = leave1.value;
}
}
Everything works as designed except for the last cfformgroup,
<cfinput label="Add Another" height="20" name="leave1" type="checkbox"
onClick="{addLev1()}" />
<cfformgroup id="leavePanel1" type="horizontal" height="{addLev1.visible
== true ? 20 : -1}">
<cfinput height="20" name="leave_startdate_1" validate="date"
type="datefield" value="#COVERAGESTARTDATE#" width="95"
bind="{leavestartdate.text}" />
</cfformgroup>
What happens is that the horizontal cfformgroup will not expand like the
others in the form. Any ideas or as anyone seen this problem before?
-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf
Of [EMAIL PROTECTED]
Sent: Monday, August 13, 2007 10:38 AM
To: [email protected]
Subject: [houcfug] Re: Flash CFFORMS
A second panel is not really necessary. Toggling the height works on
other components within the same panel.
Don Kerr
Flight Director Office
Mission Operations
NASA JSC-DA8
281.483.0386
-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of [EMAIL PROTECTED]
Sent: Monday, August 13, 2007 10:21 AM
To: [email protected]
Subject: [houcfug] Re: Flash CFFORMS
Thanks Don,
I did something like this but I didn't want to make a separate panel but
I think to move forward I will try this again.
-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Kerr, Donald (JSC-DA8)[BAS]
Sent: Monday, August 13, 2007 10:14 AM
To: [email protected]
Subject: [houcfug] Re: Flash CFFORMS
Not exactly sure what you're asking, but if you have space reserved for
a component, that is not visible (and it leaves the white space), I set
the height=0 initially, then when the button is clicked, I set the
height of the component to a number. This eliminates the reserved space
until you need it.
<cfformitem type="script">
function hidePanel(){
mypanel.visible = false;
mycomponent.height = 0;
}
function showPanel(){
mypanel.visible = true;
mycomponent.height = 100;
}
</cfformitem>
Don
-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of [EMAIL PROTECTED]
Sent: Monday, August 13, 2007 9:44 AM
To: [email protected]
Subject: [houcfug] Flash CFFORMS
Good morning everyone,
Has anyone done this sort of thing and could you please advise me in
this problem I'm having?
Ok here is my problem; I am using CFFORMS formatted in flash. In the
form I have some set information that the user needs to add but if they
need to add additional information (same as what they just entered) I
want to do an "add another" checkbox. Now I can hack my through it but
it doesn't look good, for some reason flash reserves the space in the
panel and it can take up quite amount of space. Has anyone seen this
problem and could you please advice.
Ernie Pena
UT MD Anderson Cancer Center.
[EMAIL PROTECTED]
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the "Houston ColdFusion
Users' Group" discussion list.
To unsubscribe, send email to [EMAIL PROTECTED]
For more options, visit http://groups.google.com/group/houcfug?hl=en
-~----------~----~----~----~------~----~------~--~---