1. #1
    Sencha User
    Join Date
    Nov 2012
    Posts
    6
    Vote Rating
    0
    prd0000 is on a distinguished road

      0  

    Default Calling Ext.MessageBox.alert produces greyed page

    Calling Ext.MessageBox.alert produces greyed page


    Hi,

    I have made some error trapping for server errors as follows:
    PHP Code:
    Ext.Ajax.on('requestexception'
      function (
    connresponseopt) {    
        var 
    message response.statusText;
        var 
    title "ERROR " response.status;
        if (
    response.responseText) {
            if (
    response.responseText.substr(01) == '{') {
                
    message Ext.decode(response.responseText).data;
            } else {
                
    message response.responseText;
            }
        }
        
    Ext.MessageBox.show({
            
    buttons:Ext.MessageBox.OK,
            
    fn:function () {
                
    this.close();
            },
            
    icon:Ext.MessageBox.ERROR,
            
    modal:true,
            
    msg:message,
            
    title:title
        
    });
        
    console.log(response);
    }); 
    now, when I call form submit as follows:
    PHP Code:
    form.getForm().submit({
        
    url:'/someurl.json',
        
    waitMsg:'Rolling.. rolling...'
    }); 
    and, if in turn server returns any error, the screen would turn to a grey page and I can't click on anything. No error or anything on console.

    If I call form submit as follows:
    PHP Code:
    form.getForm().submit({
        
    url:'/someurl.json'
    }); 
    they are running just fine. There seems something between waitMsg and Msg.alert() that cancel each other.

    Is there a way to implement this?

    Thank you.

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,795
    Vote Rating
    834
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    That sounds like a bug.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

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

      0  

    Default


    can you provide responses on success and fail?

  4. #4
    Sencha User
    Join Date
    Nov 2012
    Posts
    6
    Vote Rating
    0
    prd0000 is on a distinguished road

      0  

    Default


    Sorry, I have forgotten about this one.. Been trying to avoid having waitMsg.

    Basically, any response would do.
    Success response would be any HTTP 200 OK messages along with data. No problem with that..
    Failure response, would be anything other than HTTP 200. Everything. HTTP 400 Bad Request, HTTP 403 Forbidden, HTTP 404 Not Found, HTTP 503 Not Available, you name it.

Thread Participants: 2

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