You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Emi Lu <em...@encs.concordia.ca> on 2011/10/07 21:56:26 UTC

Hello,

<s:submit onclick="return check_func();" action="ProcessAction"/>

Firefox, when check_func() returns false, the action will not be called. 
But in IE9, although check_func() returns false, the action is still be 
called!

Does someone know how to fix this issue?

Thanks a lot!
Emi

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


Re: Posted by Emi Lu <em...@encs.concordia.ca>.
On 10/08/2011 04:40 AM, Li Ying wrote:
> This page may help:
> http://www.ontola.com/en/javascript-onclick-return-false-does-not-work-in-i

Thank you Ying!

I fixed the problem. It seems that ajax firefox return str !='' but and 
a trim is needed. while IE it returns str ==''.

But IE will not accept str.trim;

but have to add a trim function.

Thanks a lot!
Emi

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


Re: Posted by Li Ying <li...@gmail.com>.
This page may help:
http://www.ontola.com/en/javascript-onclick-return-false-does-not-work-in-i

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