-
23 Aug 2012 3:51 AM #1
Unanswered: Formpanel URL
Unanswered: Formpanel URL
Hello Everyone,
I have a form panel similar to the example found in the doc and I am trying to set the url. However, the 'url' does not appear in the list of configs and properties even though it is in the example. In addition to this, whenever I try to submit my form, it always has a url of localhost/undefined, even though I set the url parameter everywhere I could.
TL;DR How do you set the destination url on a form panel.
Any help is greatly appreciated.
-
23 Aug 2012 3:54 AM #2
Ext.form.Panel has all of the configs of Ext.form.Basic.
http://docs.sencha.com/ext-js/4-1/#!....Basic-cfg-url
-
23 Aug 2012 3:57 AM #3
Okay thanks. But even when I set the url I get that it is undefined. Should I be using Ext.apply ?
-
23 Aug 2012 4:00 AM #4
-
23 Aug 2012 4:30 AM #5
Also you can put url in submib config:
Code:form.submit({ clientValidation: true, url: 'submit url here', waitMsg: 'Wait...', success: function (form, action) { }, failure: function (form, action) { switch (action.failureType) { case Ext.form.action.Action.CLIENT_INVALID: break; case Ext.form.action.Action.CONNECT_FAILURE: break; case Ext.form.action.Action.SERVER_INVALID: break; } } });
-
23 Aug 2012 3:27 PM #6
From this post
http://www.sencha.com/forum/showthread.php?139739-Form-submit-quot-No-URL-specified-quot
I learned that I have to use this.initialConfig.url = 'funkyurl' to get it to work.


Reply With Quote