Can I hide a part of the text by a "More..." link?
Disabling <cfformgroup type=
Hello Guest
  
  • Login
• Register…
• Start blog
  • Who, Where, When
• What is interesting here?
• Duels
  • Polls
• Avatars
• Interests
  • Cities and Countries
• Random blog
• Users search
  • Search
• Games
• Tests
• QAIX
  • Сообщества
• Talxy Chat
• Horoscope
• Online
 
Register!

QAIX > ColdFusion > Disabling <cfformgroup type="page"> based on radio buttons 7 March 2005 20:19:32

  Top users: 
  Recent blog posts: 
  Forums:   
  Discuss: 
  Recent forum topics: 
  Recent forum comments:
  Модератор:

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.gu­est.setEnabled(true)­">
<cfinput type="Radio" required="No" name="mType" label="b" value="2"
onclick="_parent.gu­est.setEnabled(true)­">
<cfinput type="Radio" required="No" name="mType" label="c" value="3"
onclick="_parent.gu­est.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-Re5JQEeQqe­8AvxtiuMwx3w@public.­gmane.org
blog: http://john.blayter­.com/

~~~~~~~~~~~~~~~~~~~­~~~~~~~~~~~~~~~~~~~~­~~~~~~~~~~~~~~~~~~~~­~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support
efficiency by 100%
http://www.houseoff­usion.com/banners/vi­ew.cfm?bannerid=49

Message: http://www.houseoff­usion.com/lists.cfm/­link=i:4:196939
Archives: http://www.houseoff­usion.com/cf_lists/t­hreads.cfm/4
Subscription: http://www.houseoff­usion.com/lists.cfm/­link=s:4
Unsubscribe: http://www.houseoff­usion.com/cf_lists/u­nsubscribe.cfm?user=­13123.11886.4
Donations & Support: http://www.houseoff­usion.com/tiny.cfm/5­4

Add comment
John Blayter 2 March 2005 02:39:26 permanent link ]
 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-Re5JQEeQq­e8AvxtiuMwx3w@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.gu­est.setEnabled(true)­">> <cfinput type="Radio" required="No" name="mType" label="b" value="2"> onclick="_parent.gu­est.setEnabled(true)­">> <cfinput type="Radio" required="No" name="mType" label="c" value="3"> onclick="_parent.gu­est.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-Re5JQEeQqe­8AvxtiuMwx3w@public.­gmane.org> blog: http://john.blayter­.com/>


--
John Blayter
email: jblayter-Re5JQEeQqe­8AvxtiuMwx3w@public.­gmane.org
blog: http://john.blayter­.com/


~~~~~~~~~~~~~~~~~~~­~~~~~~~~~~~~~~~~~~~~­~~~~~~~~~~~~~~~~~~~~­~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble
Ticket application

http://www.houseoff­usion.com/banners/vi­ew.cfm?bannerid=48

Message: http://www.houseoff­usion.com/lists.cfm/­link=i:4:197042
Archives: http://www.houseoff­usion.com/cf_lists/t­hreads.cfm/4
Subscription: http://www.houseoff­usion.com/lists.cfm/­link=s:4
Unsubscribe: http://www.houseoff­usion.com/cf_lists/u­nsubscribe.cfm?user=­13123.11886.4
Donations & Support: http://www.houseoff­usion.com/tiny.cfm/5­4

Add comment
Mike Nimer 5 March 2005 22:41:25 permanent link ]
 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.getHead­erAt(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.getHead­erAt(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.getHead­erAt(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.houseoff­usion.com/banners/vi­ew.cfm?bannerid=67

Message: http://www.houseoff­usion.com/lists.cfm/­link=i:4:197580
Archives: http://www.houseoff­usion.com/cf_lists/t­hreads.cfm/4
Subscription: http://www.houseoff­usion.com/lists.cfm/­link=s:4
Unsubscribe: http://www.houseoff­usion.com/cf_lists/u­nsubscribe.cfm?user=­13123.11886.4
Donations & Support: http://www.houseoff­usion.com/tiny.cfm/5­4

Add comment
John Blayter 7 March 2005 20:19:32 permanent link ]
 Mike,

This is exactly what I needed!
I owe you a drink!

Thanks

John


On Sat, 5 Mar 2005 14:41:25 -0500, Mike Nimer <mnimer-14osZcCZf76­2oZ/6fjIToQ@public.g­mane.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.getHead­erAt(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.getHead­erAt(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.getHead­erAt(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>

~~~~~~~~~~~~~~~~~~~­~~~~~~~~~~~~~~~~~~~~­~~~~~~~~~~~~~~~~~~~~­~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support
efficiency by 100%
http://www.houseoff­usion.com/banners/vi­ew.cfm?bannerid=49

Message: http://www.houseoff­usion.com/lists.cfm/­link=i:4:197708
Archives: http://www.houseoff­usion.com/cf_lists/t­hreads.cfm/4
Subscription: http://www.houseoff­usion.com/lists.cfm/­link=s:4
Unsubscribe: http://www.houseoff­usion.com/cf_lists/u­nsubscribe.cfm?user=­13123.11886.4
Donations & Support: http://www.houseoff­usion.com/tiny.cfm/5­4

Add comment
 

Add new comment

As:
Login:  Password:  
 
 
  
 
Пожалуйста, относитесь к собеседникам уважительно, не используйте нецензурные слова, не злоупотребляйте заглавными буквами, не публикуйте рекламу и объявления о купле/продаже, а также материалы нарушающие сетевой этикет или законы РФ. Ваш ip-адрес записывается.


QAIX > ColdFusion > Disabling <cfformgroup type="page"> based on radio buttons 7 March 2005 20:19:32

see also:
exporting data into tables from excel…
Format a datetime columns output?
Create Procedure in an IF block?
pass tests:
Тест - бяка
see also:

  Copyright © 2001—2010 QAIX
Идея: Монашёв Михаил.
Авторами текстов, изображений и видео, размещённых на этой странице, являются пользователи сайта.
See Help and FAQ in the community support.qaix.com.
Write in the community about the bugs you have noticedbugs.qaix.com.
Write your offers and comments in the communities suggest.qaix.com.
Information for parents.
Пишите нам на .
If you would like to report an abuse of our service, such as a spam message, please .
Если Вы хотите пожаловаться на содержимое этой страницы, пожалуйста .