Add method="post" and use onsubmit="return false;"? Is there a reason why there's no method?
On Nov 8, 2007 11:15 AM, Nick Cernis <[EMAIL PROTECTED]> wrote: > What's the best way to handle forms that are submitted via cfajaxproxy > using the return key? > > For example, the following form is correctly submitted asynchronously when > the Submit button is pressed, but incorrectly submitted via a GET request if > the user just hits the return key after filling in the input box: > > <form name="echo" id="echo"> > <input type="text" name="word" id="word"> > <input type="button" name="done" value="Submit" onclick="echoWord();"> > </form> > > I know I could just add onsubmit="return false;" to the form tag, but > wondered if there was a more user-friendly appraoch. > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| ColdFusion 8 - Build next generation apps today, with easy PDF and Ajax features - download now http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292956 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4