You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Mitch Claborn <mi...@claborn.net> on 2009/08/28 20:44:27 UTC

Re: ajax submit and IE

Some possible workarounds:
1) add this to the textfield:
      onkeypress="return !(event && event.keyCode && event.keyCode == 13);"
This is a bit of javacript that suppresses the enter key.

2) or this
      onkeypress="if (event && event.keyCode && event.keyCode == 13)
{dojo.byId('ajaxShippingSubmit').click(); return false; } else { return
true; } "
Instead of suppressing the enter key, uses JavaScript to "click" the
ajax submit button.



Mitch



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org