Re: OT (maybe): Display additional info from a Select before Form is Submitted - little help needed
Try setting the bindOnLoad to false wrote: > > Almost working correctly. > > When the page first loads, I get an alert: > "The GROUPS_ID argument passed to the get is not of type numeric" > > If I dismiss the alert, then the page functions normally after that and > the correct description shows up depending on what you select in > "sendGROUP". Ideas? > > Here's what I've got: > > My CFC file: > > > > > > > > > > > > SELECT mlCOMMENTS > FROM nl_groupLIST > WHERE groups_id = #ARGUMENTS.groups_id# > > > > > > > > > > > > > > > ... and on the page n question: > >query="groups" > display="mgroup" > value="groups_id" > size="10" /> > > > > style="background-color:##F8F8F8; height:100; width:200;" /> > > > ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:322516 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: OT (maybe): Display additional info from a Select before Form is Submitted - little help needed
Almost working correctly. When the page first loads, I get an alert: "The GROUPS_ID argument passed to the get is not of type numeric" If I dismiss the alert, then the page functions normally after that and the correct description shows up depending on what you select in "sendGROUP". Ideas? Here's what I've got: My CFC file: SELECT mlCOMMENTS FROM nl_groupLIST WHERE groups_id = #ARGUMENTS.groups_id# ... and on the page n question: ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:322493 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: OT (maybe): Display additional info from a Select before Form is Submitted
> http://www.forta.com/blog/index.cfm/2007/6/4/ColdFusion-Ajax-Tutorial-4-Partial-Page-Updates This is *exactly* what I'm looking for! Thanks very much! ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:322475 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: OT (maybe): Display additional info from a Select before Form is Submitted
If there aren't many categories, load all the extra info into the page in the place you need it to appear and hide it by default. Then on change of the drop down, show the relevant info. With jQuery: $(function() { $("#cats").change(function() { $(".catInfo").hide(); $("#catInfo" + jQuery(this).val()).show(); }); }); .catInfo { display: none; } One Two Three Cat into 1 Cat into 2 Cat into 3 Adrian > -Original Message- > From: Les Mizzell [mailto:lesm...@bellsouth.net] > Sent: 13 May 2009 18:23 > To: cf-talk > Subject: OT (maybe): Display additional info from a Select before Form > is Submitted > > > For a select box (simplified): > > > >#getCATS.catNAME# > > > > I need to display additional info for each selection when the selection > is made - before the form is submitted. > So if you've got > Record 1 > Record 2 > Record 3 > ...and somebody selects "Record 2" - I need the contents of an > additional field ("cat_comments") to immediately display under the > select before the form is submitted... > > Still scratching my head. Can somebody point me in the correct > direction > to pull this off? > > > > > > ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:322474 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: OT (maybe): Display additional info from a Select before Form is Submitted
Uncle Ben has a tute on that here: http://www.forta.com/blog/index.cfm/2007/6/4/ColdFusion-Ajax-Tutorial-4-Partial-Page-Updates On Wed, May 13, 2009 at 1:23 PM, Les Mizzell wrote: > > For a select box (simplified): > > > > #getCATS.catNAME# > > > > I need to display additional info for each selection when the selection > is made - before the form is submitted. > So if you've got > Record 1 > Record 2 > Record 3 > ...and somebody selects "Record 2" - I need the contents of an > additional field ("cat_comments") to immediately display under the > select before the form is submitted... > > Still scratching my head. Can somebody point me in the correct direction > to pull this off? > > > > > > ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:322473 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: OT (maybe): Display additional info from a Select before Form is Submitted
Are you on CF 8? If so one way to do it is use CFdiv and have it call a template or bind to a CFC to display the comments. #getCATS.catNAME# > > OR On Wed, May 13, 2009 at 1:23 PM, Les Mizzell wrote: > > For a select box (simplified): > > > > #getCATS.catNAME# > > > > I need to display additional info for each selection when the selection > is made - before the form is submitted. > So if you've got > Record 1 > Record 2 > Record 3 > ...and somebody selects "Record 2" - I need the contents of an > additional field ("cat_comments") to immediately display under the > select before the form is submitted... > > Still scratching my head. Can somebody point me in the correct direction > to pull this off? > > > > > > ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:322472 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4