View Full Version : Ext.Message.alert IN IE 7

11 Jan 2010, 11:49 PM
I use Ext.MessageBox.alert in ie 7, report error: object does not support this attribute or method.
ext-all-debug.js line: 187
code : 0 charater: 17

my code as followings:
<link rel="stylesheet" type="text/css" href="/Demo/ext-3.1.0/resources/css/ext-all.css" />
<script type="text/javascript" src="/Demo/ext-3.1.0/adapter/ext/ext-base.js"></script>
<script type="text/javascript" src="/Demo/ext-3.1.0/ext-all-debug.js"></script>
Ext.onReady(function() {
Ext.Message.alert('Status', 'Changes saved successfully.');

the error lin in ext-all-debug.js is:
range = el.ownerDocument.createRange();

I'm not sure it is A bug. Because the msgbox examples with ext-3.1.0 shows correctly. Maybe something wrong with me?:-/

11 Jan 2010, 11:55 PM
What does the body of your HTML look like?

IE does have some problems when the first node in the body is a text node. Try adding an empty span as the first element, e.g.


12 Jan 2010, 12:30 AM
No such thing as Ext.Message, either Ext.Msg or Ext.MessageBox.

12 Jan 2010, 1:05 AM
My typo , should be Ext.MessageBox.alert.
I remove 'hello' from body, then it works.
Thanks a lot.:)

BTW: It's an IE bug?