PDA

View Full Version : [CLOSED] FormPanel and Button



Timothy
May 06, 2012, 8:09 PM
Hello,

Just curious, without using a DirectEvent how would one post a FormPanel to an action in MVC? I do not want to use the DirectEvent, it's for a login prompt.

Just looking for suggestions :)

Cheers,
Timothy

Vladimir
May 07, 2012, 8:56 AM
Well, I guess need to set StandardSubmit="true" (othervise an ajax request will be used to submit the form) for FormPanel and use


myFormPanel().getForm().submit({
url: "/Controller/Action"
});

Timothy
May 07, 2012, 12:32 PM
Thanks, you can close this one.

Cheers,
Timothy