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 is delivering applications solutions at at top companies 
around the world in government.  Find out how and where now
http://www.adobe.com/cfusion/showcase/index.cfm?event=finder&productID=1522&loc=en_us

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:292951
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to