1. #1
    Sencha Premium Member
    Join Date
    Nov 2011
    Posts
    3
    Vote Rating
    0
    timbritton is on a distinguished road

      0  

    Default Answered: Ext.application works in all browsers except IE9

    Answered: Ext.application works in all browsers except IE9


    Hi,

    I have a MVC Ext.application that works in Chrome, Firefox, Safari etc, but won't load in Internet Explorer 9. Though if a enable Developer Tools (F12) it will load. Any idea why this is happening? Or suggestions on how to debug what is happening?

    Regards,
    Tim

  2. Sounds like you have console.log() call(s) somewhere? Those will fail if Developer Tools is not active.

    If that is the reason you can add following to your app.js to comfort IE:

    Code:
    if (!window.console) window.console = {};
    if (!window.console.log) window.console.log = function () { };

  3. #2
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    16,834
    Answers
    453
    Vote Rating
    609
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      0  

    Default


    First thing to do would be to check for trailing commas.

    Code:
    Ext.define('Foo', {
        foo: function(){
        },
    
        bar: function(){
        },
    });
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

  4. #3
    Sencha Premium Member
    Join Date
    Nov 2011
    Posts
    3
    Vote Rating
    0
    timbritton is on a distinguished road

      0  

    Default


    Hi Evan,

    That doesn't appear to be the problem.

    A very simple app that doesn't work:

    Code:
    <!doctype html>
    <html>
    <head>
        <meta charset="UTF-8">
        <title>AS3 to JS/Sencha Migration</title>
        <link rel="stylesheet" type="text/css" href="extjs/resources/css/ext-all.css">
        <script type="text/javascript" src="extjs/ext-all-dev.js"></script>
        <script type="text/javascript" src="app.js"></script>
    </head>
    </html>
    Code:
    Ext.onReady(function()
    {
        var button = Ext.create("Ext.Button", {
            text:"Click me",
            renderTo: Ext.getBody()
        });
        button.addListener( "click", function(e) {
            this.setText("Clicked");
        });
    });
    Regards,
    Tim

  5. #4
    Sencha User
    Join Date
    Oct 2010
    Posts
    75
    Answers
    2
    Vote Rating
    4
    devnullable is on a distinguished road

      1  

    Default


    Sounds like you have console.log() call(s) somewhere? Those will fail if Developer Tools is not active.

    If that is the reason you can add following to your app.js to comfort IE:

    Code:
    if (!window.console) window.console = {};
    if (!window.console.log) window.console.log = function () { };

  6. #5
    Sencha Premium Member
    Join Date
    Nov 2011
    Posts
    3
    Vote Rating
    0
    timbritton is on a distinguished road

      0  

    Default


    That's done it. Thank you very much.

Thread Participants: 2

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