Re: SELECT - Option selected
I have a simple one: cfselect name=endampm required=yes message=Please select an AM/PM for the end time id=endampm option value=/option option value=AM cfif schedule.endampm EQ AMselected=selected /cfifAM/option option value=PM cfif schedule.endampm EQ PMselected=selected /cfifPM/option /cfselect depends on cfselect... in simple cfselect - one based on an in-page query, for example - you can provide a value in the 'selected' attribute and an option with that value will be pre-selected. advanced cfselect - one with a binding - does not support this functionality. but there are javascript work-arounds for that: google 'cfselect binding selected' and you will find them Azadi On 16/02/2011 21:34 , Torrent Girl wrote: ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:342370 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: SELECT - Option selected
The solution was not to use CFFORM at all. it now works. I have a simple one: cfselect name=endampm required=yes message=Please select an AM/PM for the end time id=endampm option value=/option option value=AM cfif schedule.endampm EQ AMselected=selected /cfifAM/option option value=PM cfif schedule.endampm EQ PMselected=selected /cfifPM/option /cfselect depends on cfselect... in simple cfselect - one based on an in-page query, for example - you can provide a value in the 'selected' attribute and an option with that value will be pre-selected. advanced cfselect - one with a binding - does not support this functionality. but there are javascript work-arounds for that: google 'cfselect binding selected' and you will find them Azadi On 16/02/2011 21:34 , Torrent Girl wrote: ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:342371 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: SELECT - Option selected
In my experience CFForm is more trouble than it's worth. I generally just use regular forms + jquery to get elegant client-side validation. Much more lightweight and gives much more granular control over your form. On Thu, Feb 17, 2011 at 5:27 AM, Torrent Girl moniqueb...@gmail.com wrote: The solution was not to use CFFORM at all. it now works. I have a simple one: cfselect name=endampm required=yes message=Please select an AM/PM for the end time id=endampm option value=/option option value=AM cfif schedule.endampm EQ AMselected=selected /cfifAM/option option value=PM cfif schedule.endampm EQ PMselected=selected /cfifPM/option /cfselect depends on cfselect... in simple cfselect - one based on an in-page query, for example - you can provide a value in the 'selected' attribute and an option with that value will be pre-selected. advanced cfselect - one with a binding - does not support this functionality. but there are javascript work-arounds for that: google 'cfselect binding selected' and you will find them Azadi On 16/02/2011 21:34 , Torrent Girl wrote: ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:342373 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: SELECT - Option selected
I couldn't agree more. I abandoned CFFORM years ago. Sent from my iPhone On Feb 17, 2011, at 6:05 AM, Michael Grant mgr...@modus.bz wrote: In my experience CFForm is more trouble than it's worth. I generally just use regular forms + jquery to get elegant client-side validation. Much more lightweight and gives much more granular control over your form. On Thu, Feb 17, 2011 at 5:27 AM, Torrent Girl moniqueb...@gmail.com wrote: The solution was not to use CFFORM at all. it now works. I have a simple one: cfselect name=endampm required=yes message=Please select an AM/PM for the end time id=endampm option value=/option option value=AM cfif schedule.endampm EQ AMselected=selected /cfifAM/option option value=PM cfif schedule.endampm EQ PMselected=selected /cfifPM/option /cfselect depends on cfselect... in simple cfselect - one based on an in-page query, for example - you can provide a value in the 'selected' attribute and an option with that value will be pre-selected. advanced cfselect - one with a binding - does not support this functionality. but there are javascript work-arounds for that: google 'cfselect binding selected' and you will find them Azadi On 16/02/2011 21:34 , Torrent Girl wrote: ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:342374 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: SELECT - Option selected
Same. As of CF8 I use CFFORM sometimes, but only for the built-in text editor in CFTEXTAREA ... easier than wiring up tinyMCE or ckEditor, but I don't use it for validation, I use a simple JS library for that. From: Brian Cain bcc9...@gmail.com Sent: Thursday, February 17, 2011 7:58 AM To: cf-talk cf-talk@houseoffusion.com Subject: Re: SELECT - Option selected I couldn't agree more. I abandoned CFFORM years ago. Sent from my iPhone On Feb 17, 2011, at 6:05 AM, Michael Grant mgr...@modus.bz wrote: In my experience CFForm is more trouble than it's worth. I generally just use regular forms + jquery to get elegant client-side validation. Much more lightweight and gives much more granular control over your form. On Thu, Feb 17, 2011 at 5:27 AM, Torrent Girl moniqueb...@gmail.com wrote: The solution was not to use CFFORM at all. it now works. I have a simple one: cfselect name=endampm required=yes message=Please select an AM/PM for the end time id=endampm option value=/option option value=AM cfif schedule.endampm EQ AMselected=selected /cfifAM/option option value=PM cfif schedule.endampm EQ PMselected=selected /cfifPM/option /cfselect depends on cfselect... in simple cfselect - one based on an in-page query, for example - you can provide a value in the 'selected' attribute and an option with that value will be pre-selected. advanced cfselect - one with a binding - does not support this functionality. but there are javascript work-arounds for that: google 'cfselect binding selected' and you will find them Azadi On 16/02/2011 21:34 , Torrent Girl wrote: ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:342377 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: SELECT - Option selected
I read that you got this fixed, but for future reference I remember reading somewhere (I think on cf-talk) that the option value=/option Needs to have a space between the to make it work properly. Steve -Original Message- From: Torrent Girl [mailto:moniqueb...@gmail.com] Sent: Thursday, February 17, 2011 5:04 AM To: cf-talk Subject: Re: SELECT - Option selected I have a simple one: cfselect name=endampm required=yes message=Please select an AM/PM for the end time id=endampm option value=/option option value=AM cfif schedule.endampm EQ AMselected=selected /cfifAM/option option value=PM cfif schedule.endampm EQ PMselected=selected /cfifPM/option /cfselect ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:342380 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: SELECT - Option selected
Does this not work on cfselect? If you are talking the HTML select element it is selected=selected Sent from my iPhone On Feb 15, 2011, at 4:47 PM, Torrent Girl moniqueb...@gmail.com wrote: ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:342328 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: SELECT - Option selected
depends on cfselect... in simple cfselect - one based on an in-page query, for example - you can provide a value in the 'selected' attribute and an option with that value will be pre-selected. advanced cfselect - one with a binding - does not support this functionality. but there are javascript work-arounds for that: google 'cfselect binding selected' and you will find them Azadi On 16/02/2011 21:34 , Torrent Girl wrote: Does this not work on cfselect? If you are talking the HTML select element it is selected=selected Sent from my iPhone On Feb 15, 2011, at 4:47 PM, Torrent Girlmoniqueb...@gmail.com wrote: ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:342331 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: SELECT - Option selected
this is an old post but I am pulling my hair out as well. Does anyone know the answer to the select=true, select=selected problem? It is not working in IE or FF for me. TIA ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:342310 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: SELECT - Option selected
If you are talking the HTML select element it is selected=selected Sent from my iPhone On Feb 15, 2011, at 4:47 PM, Torrent Girl moniqueb...@gmail.com wrote: this is an old post but I am pulling my hair out as well. Does anyone know the answer to the select=true, select=selected problem? It is not working in IE or FF for me. TIA ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:342311 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: SELECT - Option selected
remove =true and it should work cfloop query=myquery_1 option value=#ID# cfif ID EQ IDselected/cfif#Description#/option /cfloop Andrew. Ok I've spent that last 2 hours tearing my hair out trying to figure out what was wrong in my code. When I come to the realization to test it in IE and bam it works. I have a dynamically generated Select drop down that marked the option tag selected that is the value I want. Firefox is ignoring the selected attribute but IE picks it up just fine. Has anyone else run into this problem before? cfoutput cfset xID = 3 select name=groupID cfloop query=myquery_1 option value=#ID# cfif ID EQ IDselected=true/cfif#Description#/option /cfloop /select /cfoutput BTW I've tried it several ways: option value=#ID# cfif ID EQ IDselected=selected/cfif#Description#/option option value=#ID# cfif ID EQ IDselected=true/cfif#Description#/option option value=#ID# cfif ID EQ IDselected/cfif#Description#/option None of the above worked in FireFox but all of them worked in IE. I've googled my brains out but every were I've seen people post about this, there is never a solution. ~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 MX7 integration create powerful cross-platform RIAs http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJQ Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:282327 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: SELECT - Option selected
remove =true and it should work. Andrew. Ok I've spent that last 2 hours tearing my hair out trying to figure out what was wrong in my code. When I come to the realization to test it in IE and bam it works. I have a dynamically generated Select drop down that marked the option tag selected that is the value I want. Firefox is ignoring the selected attribute but IE picks it up just fine. Has anyone else run into this problem before? cfoutput cfset xID = 3 select name=groupID cfloop query=myquery_1 option value=#ID# cfif ID EQ IDselected=true/cfif#Description#/option /cfloop /select /cfoutput BTW I've tried it several ways: option value=#ID# cfif ID EQ IDselected=selected/cfif#Description#/option option value=#ID# cfif ID EQ IDselected=true/cfif#Description#/option option value=#ID# cfif ID EQ IDselected/cfif#Description#/option None of the above worked in FireFox but all of them worked in IE. I've googled my brains out but every were I've seen people post about this, there is never a solution. ~| ColdFusion MX7 and Flex 2 Build sales marketing dashboard RIAâs for your business. Upgrade now http://www.adobe.com/products/coldfusion/flex2?sdid=RVJT Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:282336 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: SELECT - Option selected
remove =true and it should work. Andrew Ok I've spent that last 2 hours tearing my hair out trying to figure out what was wrong in my code. When I come to the realization to test it in IE and bam it works. I have a dynamically generated Select drop down that marked the option tag selected that is the value I want. Firefox is ignoring the selected attribute but IE picks it up just fine. Has anyone else run into this problem before? cfoutput cfset xID = 3 select name=groupID cfloop query=myquery_1 option value=#ID# cfif ID EQ IDselected=true/cfif#Description#/option /cfloop /select /cfoutput BTW I've tried it several ways: option value=#ID# cfif ID EQ IDselected=selected/cfif#Description#/option option value=#ID# cfif ID EQ IDselected=true/cfif#Description#/option option value=#ID# cfif ID EQ IDselected/cfif#Description#/option None of the above worked in FireFox but all of them worked in IE. I've googled my brains out but every were I've seen people post about this, there is never a solution. ~| CF 8 â Scorpio beta now available, easily build great internet experiences â Try it now on Labs http://www.adobe.com/cfusion/entitlement/index.cfm?e=labs_adobecf8_beta Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:282339 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: SELECT - Option selected
I've run into this before with FF. I think when I made my changes, I cleared the cache and reloaded the page. Then it started working. I also like using cfselect selected=#someValue# Will ~| ColdFusion MX7 by Adobe® Dyncamically transform webcontent into Adobe PDF with new ColdFusion MX7. Free Trial. http://www.adobe.com/products/coldfusion?sdid=RVJV Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:282340 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4