View Full Version : Ext.Msg.alert not working
rtweed
11 Sep 2010, 9:20 AM
I noticed in the API documentation for Sencha Touch that it now included Ext.MessageBox. However, despite numerous attempts to use Ext.Msg.alert, I've been unable to get it to work on either an iPhone or iPad. The best I can get is the screen goes dim and grey, but no alert pops up.
Is there something I'm doing wrong or has the API documentation got out prematurely?
Rob
davidkaneda
11 Sep 2010, 10:04 PM
This is a known issue, we will have this in 1.0.
Ralph Haygood
24 Sep 2010, 10:15 AM
I'm looking forward to this. Asynchronous alerts are quite useful.
aconran
24 Sep 2010, 11:30 AM
Ext.Msg.alert is up and running in Sencha Touch 0.96 to be released on the 28th.
gabrielstuff
28 Sep 2010, 3:10 AM
Hi !
What would be the benefit of Ext.Msg.alert (http://dev.sencha.com/deploy/touch/docs/?class=Ext.Msg)
Moreother, would it be possible to make msg alert fully customizable ?
At this time, I am using alert from JS, and the title could be alarming for the user :
"Alert"
Thank you
G
davidkaneda
30 Sep 2010, 7:02 PM
Yep, it's generally just the ability to theme and further customize alerts and messaging.
I am experiencing some problems when showing two different alerts. It seems the second alert window will adopt the size of the first:
Ext.Msg.alert('Title', 'The quick brown fox jumped over the lazy dog.', Ext.emptyFn);
25506
Later:
Ext.Msg.alert('Title', 'The quick brown fox jumped over the lazy dog. The quick brown fox again jumped over the lazy dog. The quick brown fox once more jumped over the lazy dog.', Ext.emptyFn);
25507
soros
6 Apr 2011, 10:27 AM
It's a bug and the confirm and prompt have the same problem.
http://www.sencha.com/forum/showthread.php?129161-Rendering-issue-in-Ext.Msg-package-1.1.0
Tyorke
6 Apr 2011, 12:58 PM
There is a workaround, see this post:
http://www.sencha.com/forum/showthread.php?116076-Messagebox-height&p=540164&viewfull=1#post540164
Ext.emptyFn
can anyone explain for this in Ext.Msg.alert(‘Hi’, ‘Hello World!’, Ext.emptyFn);
iam new in sencha.
thanks
headkit
15 Jul 2011, 7:52 AM
Ext.emptyFn makes that nothing happens when you push the OK button, but hiding the alert window again.
rochasdv
22 Nov 2012, 10:58 AM
Ext.Msg.show (http://localhost/sencha/docs/#!/api/Ext.Msg-event-show)({ title: 'Address', message: 'Please enter your address:', width: 300, buttons: Ext.MessageBox.OKCANCEL, multiLine: true, prompt : { maxlength : 180, autocapitalize : true }, fn: function(buttonId) { console.log('You pressed the "' + buttonId + '" button.'); }});Insert the "multinLine: true" param.
Powered by vBulletin® Version 4.1.5 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.