-
5 Nov 2007 11:46 AM #1
DomHelper - Line 243 ext-all-debug.js
DomHelper - Line 243 ext-all-debug.js
Yo Ext JS guys!
Here, i got a problem at a MessageBox creation:
This line says "Microsoft JScript runtime error: Object doesn't support this property or method"Code:var range = el.ownerDocument.createRange();
How I am creating the Msg:
[CODE]
Ext.get('btnCloseChat').on('click', function(e){Ext.Msg.alert('Teste', 'S
-
5 Nov 2007 12:04 PM #2
I see this error most often in IE when the first node in the body is a textnode.
What browser? What does your markup look like?Aaron Conran
@aconran
Sencha Architect Development Team
-
6 Nov 2007 3:06 AM #3
You are right. Browser is IE and the firstNode is a text node.
But in firefox everything works ok.
-
6 Nov 2007 5:11 AM #4
Eliminate the textnode and you should be okay. You can always wrap a relevant tag around it if you actually need text there.
Aaron Conran
@aconran
Sencha Architect Development Team
-
8 Nov 2007 12:02 PM #5
You are totally right! Thank you for your answer.
(I solved this problem a long time ago, but it'll help people to know that this is the solution.)
Thank you!
-
20 Feb 2009 3:26 PM #6
Thanks Aaron, this got me too today when I was trying to add an iframe to an existing Ext.Window. I had created the window with the html property simply set as 'Loading...' and thus a textnode was created. When I called the add method to Ext.Window it failed because el.ownerDocument.createRange didn't exist for the textnode. So I changed to '<p>Loading...</p>' and all worked.



Reply With Quote