-
21 Nov 2012 12:26 PM #1
[2.1.0] Ext.Msg.alert: no message in iOS package
[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...
-
21 Nov 2012 2:58 PM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,582
- Vote Rating
- 433
This works for me:
Code:Ext.Msg.alert('Hello', 'Hi');Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
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 almost in print!
When posting code, please use BBCode's CODE tags.
-
24 Nov 2012 12:24 AM #3
I'm using this function in my app:
and it doesn't work in iOS native code and it works in ChromePHP Code:alertPopup: function(msg, caption, fnCallback) {
if(caption===undefined||caption===null){
caption="Messaggio";
}
if(fnCallback===undefined||fnCallback===null){
fnCallback=Ext.emptyFn;
}
msg=this.getItaString(msg);
Ext.Msg.alert(caption, msg, fnCallback());
},
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;
},
-
24 Nov 2012 5:54 AM #4Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,582
- Vote Rating
- 433
You probably need this instead:
You had () on fnCallback which was executing it right away not when the user would press Ok.Code:Ext.Msg.alert(caption, msg, fnCallback);
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
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 almost in print!
When posting code, please use BBCode's CODE tags.
-
24 Nov 2012 11:22 AM #5
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....
Looks like we cannot reproduce this. Please provide another test case to reproduce this issue.


Reply With Quote