-
12 Feb 2009 6:03 AM #11
less shameless bump...
less shameless bump...
I think, I too am suffering from this one. However, here's a complication. Everything works fine when I POST, but I'm having trouble with GET.
shows meCode:myObj.getForm().getEl().dom.action=myObj.url
(that's a form, with an action, method: get, a hidden/disabled field, and a hidden regular field)HTML Code:<form style="display: none;" id="ext-gen92" method="get" class="x-panel-body x-panel-body-noheader x-panel-body-noborder x-form" action="/path/page.php?date=2/10/2009"><input type="hidden" name="ext-comp-1019" id="ext-comp-1019" autocomplete="off" size="20" class="x-form-hidden x-form-field x-item-disabled" disabled=""/><input type="hidden" name="keyword" id="ext-comp-1024" autocomplete="off" size="20" class="x-form-hidden x-form-field" value="21"/></form>
However, when I myObj.getEl().dom.submit() it, my URL "date" value is stripped out, not appended. I know if I create a straight HTML form, the submit works fine. What am I missing?
-
12 Feb 2009 6:07 AM #12
Have you grabbed the latest build? There was a fix in there about encoding dates using GET.
Evan Trimboli
Sencha Developer
Twitter - @evantrimboli
Don't be afraid of the source code!
-
12 Feb 2009 6:14 AM #13
latest build, no. I'm using 2.2. However the fact that my example uses a date not withstanding, the issue remains with any query string.
-
12 Feb 2009 6:33 AM #14Search the forum: http://www.google.com/coop/cse?cx=01...%3Az7of1ufqccu
Read the docs too: http://extjs.com/deploy/dev/docs/
Scope: http://extjs.com/forum/showthread.ph...642#post257642
-
12 Feb 2009 8:11 AM #15
*sigh* Ok, how about this one:
creates this markup:Code:myObj=new Ext.FormPanel({ renderTo:Ext.getBody(), url:'/foundry/test.cfm?example1=true', standardSubmit:true, method:'GET', defaultType:'hidden', items:[{name:'example2',value:99}] }) myObj.getForm().getEl().dom.action=myObj.urlThen, when I use either of these:HTML Code:<form id="ext-gen167" method="get" class="x-panel-body x-panel-body-noheader x-form" action="/foundry/test.cfm?example1=true"><input type="hidden" name="example2" id="ext-comp-1025" autocomplete="off" size="20" class="x-form-hidden x-form-field" value="99"/></form>
I'm sent to "/foundry/test.cfm?example2=99", not "/foundry/test.cfm?example1=true&example2=99" as I would expect.Code:myObj.getForm().getEl().dom.submit() myObj.getForm().submit()
-
12 Feb 2009 8:21 AM #16
Nevermind. Apparently a
drops the url data, too.HTML Code:<form method="get" action="test.cfm?test1=red"> <input name="test2" value="blue"> <input type="submit"> </form>
-
12 Feb 2009 8:21 AM #17
Have you checked what the packet looks like with Fiddler?
Search the forum: http://www.google.com/coop/cse?cx=01...%3Az7of1ufqccu
Read the docs too: http://extjs.com/deploy/dev/docs/
Scope: http://extjs.com/forum/showthread.ph...642#post257642
-
20 Mar 2009 2:31 AM #18
This is still biting people who do not use Ext's native Ajax submission, but who use standardSubmit: true
They have to programmatically poke the URL into the action attribute of the DOM element!Search the forum: http://www.google.com/coop/cse?cx=01...%3Az7of1ufqccu
Read the docs too: http://extjs.com/deploy/dev/docs/
Scope: http://extjs.com/forum/showthread.ph...642#post257642
-
26 Mar 2009 9:51 AM #19
Shameless bump!
Code:initComponent :function(){ this.form = this.createForm(); Ext.FormPanel.superclass.initComponent.call(this); this.bodyCfg = { tag: 'form', cls: this.baseCls + '-body', method : this.method || 'POST', id : this.formId || Ext.id() }; if(this.fileUpload) { this.bodyCfg.enctype = 'multipart/form-data'; } if(this.standardSumbit && this.url) { this.bodyCfg.action = this.url; } this.initItems(); this.addEvents( /** * @event clientvalidation * If the monitorValid config option is true, this event fires repetitively to notify of valid state * @param {Ext.form.FormPanel} this * @param {Boolean} valid true if the form has passed client-side validation */ 'clientvalidation' ); this.relayEvents(this.form, ['beforeaction', 'actionfailed', 'actioncomplete']); },Search the forum: http://www.google.com/coop/cse?cx=01...%3Az7of1ufqccu
Read the docs too: http://extjs.com/deploy/dev/docs/
Scope: http://extjs.com/forum/showthread.ph...642#post257642
-
21 Apr 2009 12:09 PM #20
Thanks animal for bumping this thread. Bump!
Not supporting url as the action of standardSubmit:true is counterintuitive
from my perspective.


Reply With Quote
