Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1

    Default [OPEN-1278] SCRIPT438 error with IE9 Beta and ext-all-debug.js

    [OPEN-1278] SCRIPT438 error with IE9 Beta and ext-all-debug.js


    When including ext-all-debug.js from v3.2.1 the following error is presented in the console of the newly released IE9 Beta:-

    SCRIPT438: Object doesn't support this property or method
    ext-all-debug.js, line 191 character 21

    Switching the document mode into IE8 standards doesn't produce this error.

  2. #2
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,498
    Vote Rating
    46
    Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    When you go into the Tools menu, and set a breakpoint there, what's going on?

  3. #3

    Default


    To be honest I'm not sure if the following information will be of any use, so I'll also provide a simple example to reproduce the issue ...

    It seems to be caused by a call to (a subclass of) Ext.Window's show() method.

    Example: http://stevewilford.co.uk/playpen/ext-window-ie9-bug/

    It also happens all over the Sencha website (when using IE9 beta).

    I don't know whether it's a related or separate issue, but the drag-drop functionality of the window seems to be broken as well, dragging begins and displays the window ghost but on nothing happens mouse release (i.e. the window continues to drag)

    Break at line 191 of ext-all-debug.js:
    Code:
    frag = range.createContextualFragment(html);
    The contents of the "html" variable is:-
    HTML Code:
    <div class="x-ie-shadow"></div>

    Call Stack:-
    insertHtml
    pull
    show
    sync
    setVisible
    show
    afterShow
    show
    show
    Anonymous Function -- calls a subclass of Ext.Window's show() method
    JScript global code
    Last edited by stevenwilford; 12 Jan 2011 at 12:46 AM. Reason: Changed the example's URL
    Steve Wilford

    iOS development and personal site - http://stevewilford.co.uk/
    CSS Library for iPhone and iPod touch - http://stevewilford.co.uk/ios-software/css-library/

    Twitter: @stevewilford

  4. #4
    Ext JS Premium Member
    Join Date
    Jun 2007
    Posts
    8
    Vote Rating
    0
    emilschutte is on a distinguished road

      0  

    Default


    IE9 beta doesn't have the DOM Range method createContextualFragment.

    Here's the patch I'm using to fix this at the moment:

    Code:
    if ((typeof Range !== "undefined") && !Range.prototype.createContextualFragment)
    {
    	Range.prototype.createContextualFragment = function(html)
    	{
    		var frag = document.createDocumentFragment(), 
    		    div = document.createElement("div");
    		frag.appendChild(div);
    		div.outerHTML = html;
    		return frag;
    	};
    }

  5. #5
    Sencha User
    Join Date
    Dec 2008
    Posts
    6
    Vote Rating
    0
    igitur is on a distinguished road

      0  

    Default


    Getting exactly the same with IE9 (final) + Ext.NET. It doesn't occur when my app is in IE7/8 compatibility mode though.

  6. #6
    Sencha User
    Join Date
    Jun 2011
    Posts
    2
    Vote Rating
    0
    mfrancia is on a distinguished road

      0  

    Default ie9 error createContextualFragment

    ie9 error createContextualFragment


    hi

    i still have the problem with the rtm version of ie9, i apply the fix but it doesnt work

    please help

  7. #7
    Sencha User
    Join Date
    Jun 2011
    Posts
    1
    Vote Rating
    0
    rick.reese is on a distinguished road

      0  

    Default


    Quote Originally Posted by emilschutte View Post
    IE9 beta doesn't have the DOM Range method createContextualFragment.

    Here's the patch I'm using to fix this at the moment:

    Code:
    if ((typeof Range !== "undefined") && !Range.prototype.createContextualFragment)
    {
        Range.prototype.createContextualFragment = function(html)
        {
            var frag = document.createDocumentFragment(), 
                div = document.createElement("div");
            frag.appendChild(div);
            div.outerHTML = html;
            return frag;
        };
    }
    Where did you insert this? In the ext-all.js or the page that references ext-all.js?

  8. #8
    Sencha User
    Join Date
    Jun 2011
    Posts
    2
    Vote Rating
    0
    mfrancia is on a distinguished road

      0  

    Default


    hi

    i inserted in the ext-all.js, but i tried to put in an override.js and this works perfect

    thanks

  9. #9
    Sencha User xjpmauricio's Avatar
    Join Date
    Jul 2009
    Location
    Portugal, Setúbal
    Posts
    88
    Vote Rating
    1
    xjpmauricio is on a distinguished road

      0  

    Default


    Hi, still have some products using ExtJs3 so i used your patch but with a slight difference:
    Code:
        if ((typeof Range !== "undefined") && !Range.prototype.createContextualFragment) {
            Range.prototype.createContextualFragment = function (html) {
                var frag = document.createDocumentFragment(),
            div = document.createElement("div");
                frag.appendChild(div);
                //div.outerHTML = html;
                return frag;
            };
        }
    ...I just commented the outerHTML part, i think this is read-only and keeps on throwing errors on IE9 and 10.

Similar Threads

  1. Replies: 10
    Last Post: 10 Aug 2010, 6:57 AM
  2. Replies: 4
    Last Post: 12 Mar 2010, 5:02 PM
  3. ext-all-debug error line 2505
    By funz51 in forum Ext 2.x: Help & Discussion
    Replies: 3
    Last Post: 20 Oct 2008, 12:06 PM
  4. ext-all-debug.js Error
    By canesFan08 in forum Ext 2.x: Help & Discussion
    Replies: 10
    Last Post: 19 Nov 2007, 11:23 AM

Thread Participants: 6

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi