-
19 Jun 2007 2:20 AM #1
[CLOSED] owner.createDocument.createRange JS error
[CLOSED] owner.createDocument.createRange JS error
I am getting a javascript error on line 245 of the ext-core_debug.js file on IE. This happens when i use a combination of tab and dialog.
Here is the case,
<body>
some initial text here
<!---div for the TabPanel --->
<div ...>
</div>
some text here
<!--- div for the BasicDialog--->
<div ...>
</div>
</body>
IE throws an JS error in ext-core.js saying el.owner.createDocument.createRange Object doesn't support this property or method.
However, the interesting bit is that if I take off the initial text before the tab layout div, things work fine.
Can something be done for this? Is there a work around? I haven't been to get around this at all. An upgrade to the latest version did not help either.
Thanks!
Rak****h
-
19 Jun 2007 4:16 AM #2
This is an issue in IE where the first element of the body can't be a text node. A simple workaround is to place an empty span (or any tag) as the first child until we find a suitable workaround.
-
19 Jun 2007 11:30 PM #3
Thanks for the workaround Jack! That should do it until a solution is found.
-
18 Oct 2007 5:51 PM #4
-
25 Jan 2008 7:24 AM #5
FYI - I found another situation that can cause this to occur. I was adding a grid to an items collection of a panel and at the same time I had the html property set to a value. By getting rid of the html property, the error went away.
AllenCode:new Ext.Panel({ id:'middle-north-panel', region:'north', title:'MIDDLE-NORTH TITLE', //html:'Middle-North Content', // Commenting this line out fixed the problem layout:'fit', height:'200', split:true, items:[aGrid] // having the items set with the html property above caused the createRange error (in IE only) })
-
24 Apr 2008 4:36 AM #6
I use an HTML comment (<!-- Hello -->) instead of an span tag, only for being more unobtrusive.
-
25 Jun 2008 1:21 AM #7
Hi, I came across this problem as well and wanted to report that inserting a comment doesn't work in my environment. (Vista + IE7.0.6001.18000). It needs to be a span element as Jack proposed.
BTW: I use a DOMHelper config to insert stuff and if I create an html fragment using the html config property like so:
then the text node becomes a child node of the span elementCode:html: <span />text
If I write:
then the text node becomes a sibling.Code:html: <span></span>text
Is this a bug in extjs?
-
25 Jun 2008 3:37 AM #8
<span> tags must be specified as a pair.
check the html specs.
Sencha Docs / Ext 3.x - ( Docs | Examples )
Learning Center / Saki's Examples (for 2.x) / HOWTO - ( Report Bugs | Post Proper Code )
-
4 Jul 2008 5:24 AM #9
Dynamically Loading Components Fails
Dynamically Loading Components Fails
Hi Guys,
Im having a similiar problem and have searched the forums for a solution and although the concensus seems to be to add some sort of html tag at the beginning Im not sure how I can do this with my implementation
Basically I have an Ext.Window into which I want to load another Ext Component from an Ajax source.
(Example code attached)
This works a treat in FF but I have to get this working in IE as a proof-of-concept excerise for us to use EXT.
Any ideas
Sorry - just noticed this is EXT1.0 and Im using Ext 2.0 still any help wouldn't go amiss.Last edited by gholyoak; 4 Jul 2008 at 5:28 AM. Reason: Wrong Version note !
-
4 Jul 2008 10:09 AM #10
I would suggest starting a new thread, as it is likely a different issue. Also please provide a better description about what your issue is.


Reply With Quote