Re: Form submission issue
Thank you all. I managed to sort it out. I tried various methods to solve the problem, but the hidden field method worked out best for me. THanks ~| 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:311354 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Form submission issue
Are you using the onsubmit in the form tag? Maybe some more code with no sensitive data or code, might help some more. By default enter/return is acceptable under IE... -- Senior Coldfusion Developer Aegeon Pty. Ltd. www.aegeon.com.au Phone: +613 9015 8628 Mobile: 0404 998 273 -Original Message- From: Karan Joshi [mailto:[EMAIL PROTECTED] Sent: Monday, 18 August 2008 4:49 PM To: CF-Talk Subject: Form submission issue Hi I want to submit a form in IE6 using the Enter key. input type=submit name=submitSearchGeneral class=form-submitBtn value=Search I am using to StructKeyExists tag to check if the form has been submitted cfif StructKeyExists(FORM,submitSearchGeneral) It works fine with Firefox but doesn't work in IE. If I look at the FORM struct in Firefox then the submitSearchGeneral key has the value Search but in IE the value is null. Any suggestions as to how I can make the Enter key pass the value in IE? ~| 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:311162 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Form submission issue
No, in IE6 the submit button is not part of the form submission if the enter key is used. I'd use a hidden field and check for that instead of the submit button. On Mon, Aug 18, 2008 at 3:12 PM, Andrew Scott [EMAIL PROTECTED] wrote: Are you using the onsubmit in the form tag? Maybe some more code with no sensitive data or code, might help some more. By default enter/return is acceptable under IE... -Original Message- From: Karan Joshi [mailto:[EMAIL PROTECTED] Sent: Monday, 18 August 2008 4:49 PM To: CF-Talk Subject: Form submission issue Hi I want to submit a form in IE6 using the Enter key. input type=submit name=submitSearchGeneral class=form-submitBtn value=Search I am using to StructKeyExists tag to check if the form has been submitted cfif StructKeyExists(FORM,submitSearchGeneral) It works fine with Firefox but doesn't work in IE. If I look at the FORM struct in Firefox then the submitSearchGeneral key has the value Search but in IE the value is null. Any suggestions as to how I can make the Enter key pass the value in IE? -- mxAjax / CFAjax docs and other useful articles: http://www.bifrost.com.au/blog/ ~| 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:311163 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Form submission issue
to piggyback on what James said, you could just use cfif not structIsEmpty(form) the form scope/struct exists on all pages. it's just empty if the page has received no post data. On Mon, Aug 18, 2008 at 12:45 AM, James Holmes [EMAIL PROTECTED]wrote: No, in IE6 the submit button is not part of the form submission if the enter key is used. I'd use a hidden field and check for that instead of the submit button. On Mon, Aug 18, 2008 at 3:12 PM, Andrew Scott [EMAIL PROTECTED] wrote: Are you using the onsubmit in the form tag? Maybe some more code with no sensitive data or code, might help some more. By default enter/return is acceptable under IE... -Original Message- From: Karan Joshi [mailto:[EMAIL PROTECTED] Sent: Monday, 18 August 2008 4:49 PM To: CF-Talk Subject: Form submission issue Hi I want to submit a form in IE6 using the Enter key. input type=submit name=submitSearchGeneral class=form-submitBtn value=Search I am using to StructKeyExists tag to check if the form has been submitted cfif StructKeyExists(FORM,submitSearchGeneral) It works fine with Firefox but doesn't work in IE. If I look at the FORM struct in Firefox then the submitSearchGeneral key has the value Search but in IE the value is null. Any suggestions as to how I can make the Enter key pass the value in IE? -- mxAjax / CFAjax docs and other useful articles: http://www.bifrost.com.au/blog/ ~| 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:311164 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Form submission issue
And to double-piggy-back on Charlie and James, you can also check form.fieldnames which only exists after a form is submitted. I prefer the hidden field approach but all those methods are good ;) Dominic 2008/8/18 Charlie Griefer [EMAIL PROTECTED]: to piggyback on what James said, you could just use cfif not structIsEmpty(form) the form scope/struct exists on all pages. it's just empty if the page has received no post data. On Mon, Aug 18, 2008 at 12:45 AM, James Holmes [EMAIL PROTECTED]wrote: No, in IE6 the submit button is not part of the form submission if the enter key is used. I'd use a hidden field and check for that instead of the submit button. On Mon, Aug 18, 2008 at 3:12 PM, Andrew Scott [EMAIL PROTECTED] wrote: Are you using the onsubmit in the form tag? Maybe some more code with no sensitive data or code, might help some more. By default enter/return is acceptable under IE... -Original Message- From: Karan Joshi [mailto:[EMAIL PROTECTED] Sent: Monday, 18 August 2008 4:49 PM To: CF-Talk Subject: Form submission issue Hi I want to submit a form in IE6 using the Enter key. input type=submit name=submitSearchGeneral class=form-submitBtn value=Search I am using to StructKeyExists tag to check if the form has been submitted cfif StructKeyExists(FORM,submitSearchGeneral) It works fine with Firefox but doesn't work in IE. If I look at the FORM struct in Firefox then the submitSearchGeneral key has the value Search but in IE the value is null. Any suggestions as to how I can make the Enter key pass the value in IE? -- mxAjax / CFAjax docs and other useful articles: http://www.bifrost.com.au/blog/ ~| 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:311165 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Form submission issue
You can try this on your cfinput...confirmed working on IE7... onKeyDown=if(Key.isDown(Key.ENTER)) {submitForm()} ~| 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:311167 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Form submission issue
Hi I want to submit a form in IE6 using the Enter key. input type=submit name=submitSearchGeneral class=form-submitBtn value=Search I ran into this issue myself. IE6 - jeez, thanks Microshaft! Bobby H. taught me yet another way to check for form submissions. cfif cgi.request_method eq post process the form /cfif Guess it's six to one, a half dozen to the other in comparison to the other solutions posted. Will ~| 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:311171 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Form submission issue
And to run a train on them all... just check cgi.request_method to see if it is POST ..:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com http://cf4em.com -Original Message- From: Dominic Watson [mailto:[EMAIL PROTECTED] Sent: Monday, August 18, 2008 4:14 AM To: CF-Talk Subject: Re: Form submission issue And to double-piggy-back on Charlie and James, you can also check form.fieldnames which only exists after a form is submitted. I prefer the hidden field approach but all those methods are good ;) Dominic 2008/8/18 Charlie Griefer [EMAIL PROTECTED]: to piggyback on what James said, you could just use cfif not structIsEmpty(form) the form scope/struct exists on all pages. it's just empty if the page has received no post data. On Mon, Aug 18, 2008 at 12:45 AM, James Holmes [EMAIL PROTECTED]wrote: No, in IE6 the submit button is not part of the form submission if the enter key is used. I'd use a hidden field and check for that instead of the submit button. On Mon, Aug 18, 2008 at 3:12 PM, Andrew Scott [EMAIL PROTECTED] wrote: Are you using the onsubmit in the form tag? Maybe some more code with no sensitive data or code, might help some more. By default enter/return is acceptable under IE... -Original Message- From: Karan Joshi [mailto:[EMAIL PROTECTED] Sent: Monday, 18 August 2008 4:49 PM To: CF-Talk Subject: Form submission issue Hi I want to submit a form in IE6 using the Enter key. input type=submit name=submitSearchGeneral class=form-submitBtn value=Search I am using to StructKeyExists tag to check if the form has been submitted cfif StructKeyExists(FORM,submitSearchGeneral) It works fine with Firefox but doesn't work in IE. If I look at the FORM struct in Firefox then the submitSearchGeneral key has the value Search but in IE the value is null. Any suggestions as to how I can make the Enter key pass the value in IE? -- mxAjax / CFAjax docs and other useful articles: http://www.bifrost.com.au/blog/ ~| 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:311231 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4