Hybrid View

  1. #1
    Sencha User
    Join Date
    Aug 2009
    Posts
    37
    Vote Rating
    1
    jsalisbury is on a distinguished road

      0  

    Default Submit form to new window (using standardSubmit: true)

    Submit form to new window (using standardSubmit: true)


    I'd like to POST a form directly to a php script on the server, so I'm using
    "standardSubmit: true".
    So far so good.

    But I'd also like to see the response in a new browser window.
    How do I do this ? I've seen a number of recipes which were written for Extjs 3.x but clearly dont work in 4.+

    I've tried to add a 'target' parameter or even baseParameter either to the form or as argument to the submit, but to no avail.

    Has anyone got an example that works with Extjs 4.0 ?

    OK no replies. This usually means I'm asking the wrong question, so can I ask:

    Does anyone have a working example of a form submission using a standardSubmit that opens a new window, i.e. 'target = _blank', (Extjs 3.0 or 4.0) .
    Last edited by jsalisbury; 25 Oct 2011 at 1:13 AM. Reason: Widen the audience!

  2. #2
    Sencha User
    Join Date
    Aug 2009
    Posts
    37
    Vote Rating
    1
    jsalisbury is on a distinguished road

      0  

    Default shameless bump.

    shameless bump.


    Can someone put me out of my misery on this ?

  3. #3
    Sencha User
    Join Date
    Aug 2009
    Posts
    37
    Vote Rating
    1
    jsalisbury is on a distinguished road

      0  

    Wink Solution Found...

    Solution Found...


    In the end, this worked for me with Extjs 4.0.2

    1. FormPanel config:
    'standardSubmit: true'
    2. Submit button handler with it own submit statement, with target: '_blank' config:
    Ext.getCmp('formid').getForm().submit({target: '_blank'});
    ( Adding a target parameter anywhere else as (say) params, baseParams, or form params is irrelevant).

  4. #4
    Sencha User
    Join Date
    Dec 2011
    Posts
    1
    Vote Rating
    0
    WattZ is on a distinguished road

      0  

    Default


    Thank you very much.

  5. #5
    Sencha User
    Join Date
    Dec 2010
    Posts
    35
    Vote Rating
    0
    TheDude55 is on a distinguished road

      0  

    Default


    Thanks for posting your answer - saved me too!

  6. #6
    Sencha Premium Member
    Join Date
    Sep 2012
    Posts
    27
    Vote Rating
    0
    madmoravian is on a distinguished road

      0  

    Default


    I'm not certain how I missed this thread while searching. This was vital to me, as well. I did notice some interesting behavior in Chrome (I have not tried other browsers yet) when getting the form component two different ways:

    Doing it this first way, you get a new tab

    this.up('form').getForm().submit({target:'_blank',params:{selEmpId:empidArray}});

    Doing it this second way, you get a new window

    Ext.getCmp('tsDatesRangeMaster').getForm().submit({target:'_blank',params:{selEmpId:empidArray}});

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..." hd porno faketaxi