SaikoJosh
25 Apr 2011, 1:56 AM
When running the sample code below, the first alert displays fine, but the second alert closes as soon as you click OK on the first alert. Bug or intended behaviour?
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Test</title>
<!--Framework-->
<script src="sencha-touch.js" type="text/javascript"></script>
<link href="resources/css/sencha-touch.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
new Ext.Application({
launch: function() {
new Ext.Panel({
fullscreen: true,
html: 'Hello World!'
});
Ext.Msg.alert('Test', 'Alert 1', function() {
Ext.Msg.alert('Test', 'Alert 2', Ext.emptyFn);
});
}
});
</script>
</head>
<body></body>
</html>
Tested on Chrome 11.0/Windows 7 and iOS 4.3.2.
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Test</title>
<!--Framework-->
<script src="sencha-touch.js" type="text/javascript"></script>
<link href="resources/css/sencha-touch.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
new Ext.Application({
launch: function() {
new Ext.Panel({
fullscreen: true,
html: 'Hello World!'
});
Ext.Msg.alert('Test', 'Alert 1', function() {
Ext.Msg.alert('Test', 'Alert 2', Ext.emptyFn);
});
}
});
</script>
</head>
<body></body>
</html>
Tested on Chrome 11.0/Windows 7 and iOS 4.3.2.