1. #1
    Sencha Premium Member
    Join Date
    Nov 2011
    Posts
    162
    Answers
    7
    Vote Rating
    2
    UbuntuPenguin is on a distinguished road

      0  

    Default 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.

  2. #2
    Sencha User
    Join Date
    May 2011
    Location
    Ukraine, Rivne
    Posts
    247
    Answers
    44
    Vote Rating
    42
    redraid has a spectacular aura about redraid has a spectacular aura about redraid has a spectacular aura about

      0  

    Default


    Ext.form.Panel has all of the configs of Ext.form.Basic.
    http://docs.sencha.com/ext-js/4-1/#!....Basic-cfg-url



  3. #3
    Sencha Premium Member
    Join Date
    Nov 2011
    Posts
    162
    Answers
    7
    Vote Rating
    2
    UbuntuPenguin is on a distinguished road

      0  

    Default


    Okay thanks. But even when I set the url I get that it is undefined. Should I be using Ext.apply ?

  4. #4
    Sencha User
    Join Date
    May 2011
    Location
    Ukraine, Rivne
    Posts
    247
    Answers
    44
    Vote Rating
    42
    redraid has a spectacular aura about redraid has a spectacular aura about redraid has a spectacular aura about

      0  

    Default


    Quote Originally Posted by UbuntuPenguin View Post
    Okay thanks. But even when I set the url I get that it is undefined. Should I be using Ext.apply ?
    Show the code

  5. #5
    Sencha User
    Join Date
    May 2011
    Location
    Ukraine, Rivne
    Posts
    247
    Answers
    44
    Vote Rating
    42
    redraid has a spectacular aura about redraid has a spectacular aura about redraid has a spectacular aura about

      0  

    Default


    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;
           }
        }
    });

  6. #6
    Sencha Premium Member
    Join Date
    Nov 2011
    Posts
    162
    Answers
    7
    Vote Rating
    2
    UbuntuPenguin is on a distinguished road

      0  

    Default


    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.

Thread Participants: 1

Tags for this Thread

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