Disabling <cfformgroup type="page"> based on radio buttons
John Blayter 1 March 2005 18:39:18
Does anyone know how to disable a cfformgroup based on the selection of a radio button on another cfformgroup? There is not much documentation on this and the code below does not throw an error but it does not work. ----------------------------------------------------- <cfform name="myform" height="500" width="500" format="Flash" skin="haloBlue"> <cfformgroup type="accordion" height="320"> <cfformgroup type="page" label="1. Type" id="MyType"> <!--- Align the first and last name fields horizontally ---> <cfformgroup type="VERTICAL" label="Select Meeting Type"> <cfinput type="Radio" required="No" name="mType" label="a" value="1" onclick="_parent.guest.setEnabled(true)"> <cfinput type="Radio" required="No" name="mType" label="b" value="2" onclick="_parent.guest.setEnabled(true)"> <cfinput type="Radio" required="No" name="mType" label="c" value="3" onclick="_parent.guest.setEnabled(false)"> </cfformgroup> </cfformgroup> <cfformgroup type="page" label="2. Guest" id="guest"> <!--- Align the first and last name fields horizontally ---> <cfformgroup type="VERTICAL"> <cfinput type="DateField" required="No" name="Start_Date" label="Start Date" value=""> <cfinput type="DateField" required="No" name="End_Date" label="End Date" value=""> </cfformgroup> </cfformgroup> </cfformgroup> <cfformgroup type="horizontal" align="right"> <cfinput type = "submit" name="submit" value = "Submit"> </cfformgroup> </cfform> -----------------------------------------------------
-- John Blayter email: jblayter-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org blog: http://john.blayter.com/
After putzing around for a while I was able to get a button to disable its own parent page. Does anyone know the flash syntax on how to get to the other page?
Thanks
John
On Tue, 1 Mar 2005 08:39:18 -0700, John Blayter <jblayter-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Does anyone know how to disable a cfformgroup based on the selection> of a radio button on another cfformgroup? There is not much> documentation on this and the code below does not throw an error but> it does not work.> -----------------------------------------------------> <cfform name="myform" height="500" width="500" format="Flash" skin="haloBlue">> <cfformgroup type="accordion" height="320">> <cfformgroup type="page" label="1. Type" id="MyType">> <!--- Align the first and last name fields horizontally --->> <cfformgroup type="VERTICAL" label="Select Meeting Type">> <cfinput type="Radio" required="No" name="mType" label="a" value="1"> onclick="_parent.guest.setEnabled(true)">> <cfinput type="Radio" required="No" name="mType" label="b" value="2"> onclick="_parent.guest.setEnabled(true)">> <cfinput type="Radio" required="No" name="mType" label="c" value="3"> onclick="_parent.guest.setEnabled(false)">> </cfformgroup>> </cfformgroup>> <cfformgroup type="page" label="2. Guest" id="guest">> <!--- Align the first and last name fields horizontally --->> <cfformgroup type="VERTICAL">> <cfinput type="DateField" required="No" name="Start_Date" label="Start> Date" value="">> <cfinput type="DateField" required="No" name="End_Date" label="End> Date" value="">> </cfformgroup>> </cfformgroup>> </cfformgroup>> <cfformgroup type="horizontal" align="right">> <cfinput type = "submit" name="submit" value = "Submit">> </cfformgroup>> </cfform>> ----------------------------------------------------->
--> John Blayter> email: jblayter-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> blog: http://john.blayter.com/>
-- John Blayter email: jblayter-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org blog: http://john.blayter.com/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application
---------------------------- <cfform name="test" format="Flash"> <cfformgroup type="ACCORDION" id="a1" onchange="for(var i=a1.selectedIndex+1; i<4 ; i++){a1.getHeaderAt(i).enabled=false;}"> <cfformgroup type="PAGE" label="panel 1"> <cfformitem type="text"> Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla faci </cfformitem> <cfinput type="Button" name="btn1" value="Go To Panel 2" onclick="a1.getHeaderAt(1).enabled=true;a1.selectedIndex=1"> </cfformgroup> <cfformgroup type="PAGE" label="panel 2"> <cfformitem type="text"> Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla faci </cfformitem> <cfinput type="Button" name="btn2" value="Go To Panel 3" onclick="a1.getHeaderAt(2).enabled=true;a1.selectedIndex=2"> </cfformgroup> <cfformgroup type="PAGE" label="panel 3"> <cfformitem type="text"> Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla faci </cfformitem> <cfinput type="Button" name="btn3" value="Go To Panel 4" onclick="a1.getHeaderAt(3).enabled=true;a1.selectedIndex=3"> </cfformgroup> <cfformgroup type="PAGE" label="panel 4"> <cfformitem type="text"> Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla faci </cfformitem> </cfformgroup> </cfformgroup> </cfform> ----------------------------
-----Original Message----- From: John Blayter [mailto:jblayter-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org] Sent: Tuesday, March 01, 2005 6:39 PM To: CF-Talk Subject: Re: Disabling <cfformgroup type="page"> based on radio buttons
After putzing around for a while I was able to get a button to disable its own parent page. Does anyone know the flash syntax on how to get to the other page?
Thanks
John
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67
On Sat, 5 Mar 2005 14:41:25 -0500, Mike Nimer <mnimer-14osZcCZf762oZ/6fjIToQ@public.gmane.org> wrote:> Is this what you are trying to do?> ---nimer>
----------------------------> <cfform name="test" format="Flash">> <cfformgroup type="ACCORDION" id="a1" onchange="for(var> i=a1.selectedIndex+1; i<4 ; i++){a1.getHeaderAt(i).enabled=false;}">> <cfformgroup type="PAGE" label="panel 1">> <cfformitem type="text">> Lorem ipsum dolor sit amet, consectetuer adipiscing> elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna> aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci> tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo> consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit> esse molestie consequat, vel illum dolore eu feugiat nulla faci> </cfformitem>> <cfinput type="Button" name="btn1" value="Go To Panel 2"> onclick="a1.getHeaderAt(1).enabled=true;a1.selectedIndex=1">> </cfformgroup>> <cfformgroup type="PAGE" label="panel 2">> <cfformitem type="text">> Lorem ipsum dolor sit amet, consectetuer adipiscing> elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna> aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci> tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo> consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit> esse molestie consequat, vel illum dolore eu feugiat nulla faci> </cfformitem>> <cfinput type="Button" name="btn2" value="Go To Panel 3"> onclick="a1.getHeaderAt(2).enabled=true;a1.selectedIndex=2">> </cfformgroup>> <cfformgroup type="PAGE" label="panel 3">> <cfformitem type="text">> Lorem ipsum dolor sit amet, consectetuer adipiscing> elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna> aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci> tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo> consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit> esse molestie consequat, vel illum dolore eu feugiat nulla faci> </cfformitem>> <cfinput type="Button" name="btn3" value="Go To Panel 4"> onclick="a1.getHeaderAt(3).enabled=true;a1.selectedIndex=3">> </cfformgroup>> <cfformgroup type="PAGE" label="panel 4">> <cfformitem type="text">> Lorem ipsum dolor sit amet, consectetuer adipiscing> elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna> aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci> tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo> consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit> esse molestie consequat, vel illum dolore eu feugiat nulla faci> </cfformitem>> </cfformgroup>> </cfformgroup>> </cfform>> ---------------------------->
-----Original Message-----> From: John Blayter [mailto:jblayter-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org]> Sent: Tuesday, March 01, 2005 6:39 PM> To: CF-Talk> Subject: Re: Disabling <cfformgroup type="page"> based on radio buttons>
After putzing around for a while I was able to get a button to disable its> own parent page. Does anyone know the flash syntax on how to get to the> other page?>
If you would like to report an abuse of our service, such as a spam message, please . Если Вы хотите пожаловаться на содержимое этой страницы, пожалуйста .