Results 1 to 5 of 5

Thread: [2.1.0] Ext.Msg.alert: no message in iOS package

Hybrid View

Previous Post Previous Post   Next Post Next Post
    Looks like we cannot reproduce this. Please provide another test case to reproduce this issue.
  1. #1
    Sencha User
    Join Date
    Aug 2011
    Location
    Brescia - Italy
    Posts
    102
    Vote Rating
    4
      1  

    Default [2.1.0] Ext.Msg.alert: no message in iOS package

    I have used Ext.Msg.alert in my sencha 2.1.0 app and it works until I use it in browser. I'm using Sencha Architect and after iOS packaging when I try my app on device (or simulator) no messagges appear on the display...

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,317
    Vote Rating
    1291
      0  

    Default

    This works for me:

    Code:
    Ext.Msg.alert('Hello', 'Hi');
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it!

    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
    Aug 2011
    Location
    Brescia - Italy
    Posts
    102
    Vote Rating
    4
      0  

    Default

    I'm using this function in my app:
    PHP Code:
    alertPopup: function(msgcaptionfnCallback) {
            if(
    caption===undefined||caption===null){
                
    caption="Messaggio";
            }


            if(
    fnCallback===undefined||fnCallback===null){
                
    fnCallback=Ext.emptyFn;
            }
            
    msg=this.getItaString(msg);
            
    Ext.Msg.alert(captionmsgfnCallback());


        },


        
    getItaString: function(string) {
            
    string string.replace(//g,'e\'');
            
    string string.replace(//g,'a\'');
            
    string string.replace(//g,'u\'');
            
    string string.replace(//g,'i\'');
            
    string string.replace(//g,'e\'');
            
    string string.replace(//g,'o\'');
            return 
    string;
        }, 
    and it doesn't work in iOS native code and it works in Chrome

  4. #4
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,317
    Vote Rating
    1291
      0  

    Default

    You probably need this instead:

    Code:
    Ext.Msg.alert(caption, msg, fnCallback);
    You had () on fnCallback which was executing it right away not when the user would press Ok.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it!

    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.

  5. #5
    Sencha User
    Join Date
    Aug 2011
    Location
    Brescia - Italy
    Posts
    102
    Vote Rating
    4
      0  

    Default

    I've changed my code (without "()"), but the problem is present again...

    I've also used your example
    Ext.Msg.alert('Hello', 'Hi');
    but no message on display....

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •