Re: cflayout weird problem
Dave, Thanks for the help. The code sample worked great. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311499 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: cflayout weird problem
Dave, I'll try it and let you know. Thanks for the help. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311448 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: cflayout weird problem
BJ, Okay, not familiar with cf_betterselect, but the below should still work for you: Change your cfform tag to this: IN your area, add the following: function doSubmit() { var oForm = document.newEmpInsertForm; if(oForm.p_supervisor.selectedIndex == 0) { alert('must select a supervisor'); return false; } if(oForm.p_location.selectedIndex == 0) { alert('must select a location'); return false; } return true; } Change your to: #emp_locat# Modify the alerts to say whatever you want to say when wrong information is entered. Dave -Original Message- From: BJ McShane [mailto:[EMAIL PROTECTED] Sent: Friday, August 22, 2008 4:54 PM To: CF-Talk Subject: Re: cflayout weird problem Dave, I am using cfform and some of the validation on tags with it. The two places I don't is a custom tag I'm using cf_betterselect and the regular select. the betterselect allows the user to type and narrow down the list. the select tag I want the user to select a location and not have it default to one so I put in an empty tag. With this the validation will not work when I set the cfselect tag to required. Here's my code: Name: Employee No.: Title: RCN: #emp_rcn# - #mid(emp_rcn_name,9,35)# Time Reporting Group: Supervisor: #emp_last_name#, #emp_nick_name# Start Date: Location: #emp_locat# FERC/Walled Employee: Transmission Apprentice: Bargaining: or Non-Bargaining: Need Office: or Cubicle: or N/A:
Re: cflayout weird problem
Dave, I am using cfform and some of the validation on tags with it. The two places I don't is a custom tag I'm using cf_betterselect and the regular select. the betterselect allows the user to type and narrow down the list. the select tag I want the user to select a location and not have it default to one so I put in an empty tag. With this the validation will not work when I set the cfselect tag to required. Here's my code: Name: Employee No.: Title: RCN: #emp_rcn# - #mid(emp_rcn_name,9,35)# Time Reporting Group: Supervisor: #emp_last_name#, #emp_nick_name# Start Date: Location: #emp_locat# FERC/Walled Employee: Transmission Apprentice: Bargaining: or Non-Bargaining: Need Office: or Cubicle: or N/A: Laptop needed: Desktop needed: Cell phone needed: Broadband Card needed: VPN ne
RE: cflayout weird problem
BJ, Post your form code (or a snippet) and what fields you're trying to validate and what you want validated and we can help. Also, check out the CF docs for CFFORM as it has a lot of built-in javascript validation that you can utilize through CF tags like CFINPUT and so on. Dave -Original Message- From: BJ McShane [mailto:[EMAIL PROTECTED] Sent: Friday, August 22, 2008 3:59 PM To: CF-Talk Subject: Re: cflayout weird problem Dave, thanks for the reply. I did run it in firefox and the data doesn't get wiped out in that browser. So you are right it looks like it is a browser issue. I've never validated with just javascript, I'll have to look around for examples. thanks bj ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311441 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: cflayout weird problem
Dave, thanks for the reply. I did run it in firefox and the data doesn't get wiped out in that browser. So you are right it looks like it is a browser issue. I've never validated with just javascript, I'll have to look around for examples. thanks bj ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311438 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: cflayout weird problem
To my knowledge, this is a browser issue, not a cflayout issue, as you will get different results in different browsers. You can avoid this completely by using javascript to validate your fields. Dave -Original Message- From: BJ McShane [mailto:[EMAIL PROTECTED] Sent: Friday, August 22, 2008 3:24 PM To: CF-Talk Subject: cflayout weird problem I'm using the cflayout for tabs on my form. When the form submits, I check a couple of the fields for error checking and if the fields are wrong or not filled in I send the user back using the history.back() function. The forms returns but all the input the user put in is gone. If I take off the cflayout and just have a regular form the input data stays if there is an error. Does any one know of a work around or something I can do. thanks, bj ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311436 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4