1. #11
    Sencha Premium Member
    Join Date
    Jun 2007
    Posts
    216
    Vote Rating
    0
    end-user is on a distinguished road

      0  

    Default 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.
    Code:
    myObj.getForm().getEl().dom.action=myObj.url
    shows me
    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>
    (that's a form, with an action, method: get, a hidden/disabled field, and a hidden regular field)

    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?

  2. #12
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    16,781
    Vote Rating
    599
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      0  

    Default


    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!

  3. #13
    Sencha Premium Member
    Join Date
    Jun 2007
    Posts
    216
    Vote Rating
    0
    end-user is on a distinguished road

      0  

    Default


    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.

  4. #14
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,498
    Vote Rating
    46
    Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    Quote Originally Posted by end-user View Post
    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.
    Code:
    myObj.getForm().getEl().dom.action=myObj.url
    shows me
    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>
    (that's a form, with an action, method: get, a hidden/disabled field, and a hidden regular field)

    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?
    Slashes are part of a URL!

  5. #15
    Sencha Premium Member
    Join Date
    Jun 2007
    Posts
    216
    Vote Rating
    0
    end-user is on a distinguished road

      0  

    Default


    *sigh* Ok, how about this one:
    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.url
    creates this markup:
    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>
    Then, when I use either of these:
    Code:
    myObj.getForm().getEl().dom.submit()
    myObj.getForm().submit()
    I'm sent to "/foundry/test.cfm?example2=99", not "/foundry/test.cfm?example1=true&example2=99" as I would expect.

  6. #16
    Sencha Premium Member
    Join Date
    Jun 2007
    Posts
    216
    Vote Rating
    0
    end-user is on a distinguished road

      0  

    Default


    Nevermind. Apparently a
    HTML Code:
    <form method="get" action="test.cfm?test1=red">
    	<input name="test2" value="blue">
    <input type="submit">
    </form>
    drops the url data, too.

  7. #17
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,498
    Vote Rating
    46
    Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    Have you checked what the packet looks like with Fiddler?

  8. #18
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,498
    Vote Rating
    46
    Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    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!

  9. #19
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,498
    Vote Rating
    46
    Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    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']);
        },

  10. #20
    Ext User
    Join Date
    Jul 2007
    Posts
    46
    Vote Rating
    0
    arnold is on a distinguished road

      0  

    Default


    Thanks animal for bumping this thread. Bump!
    Not supporting url as the action of standardSubmit:true is counterintuitive
    from my perspective.

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..."