You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by kshitiz <k....@gmail.com> on 2012/08/16 05:59:20 UTC

AjaxFormSubmitBehavior causing page refresh in IE

Hi,

I have a simple code which is running fine in chrome...


// defining text field for user to search
	*	final RequiredTextField<String> searchTextField = new
RequiredTextField<String>(
				"search");

		searchTextField.add(new AjaxFormSubmitBehavior("onSubmit") {

			protected void onSubmit(AjaxRequestTarget target) {
				try {
// some processing
				if (target != null) {
					target.add(searchFeedbackPanel);
				}

			}

		});
*

But in IE, it is causing page refresh...how can i solve this issue?




--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/AjaxFormSubmitBehavior-causing-page-refresh-in-IE-tp4651267.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: AjaxFormSubmitBehavior causing page refresh in IE

Posted by kshitiz <k....@gmail.com>.
Solved...actually IE cannot read onSubmit action. So, I used onkeydown as
stated in
http://apache-wicket.1842946.n4.nabble.com/TextField-submit-via-Ajax-td3002094.html

That will solve the problem..:)



--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/AjaxFormSubmitBehavior-causing-page-refresh-in-IE-tp4651267p4651290.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org