1. #1
    Sencha User
    Join Date
    Aug 2012
    Posts
    1
    Vote Rating
    0
    pelegs is on a distinguished road

      0  

    Default Loading image get stuck on Chrome, app not shown properly in Firefox

    Loading image get stuck on Chrome, app not shown properly in Firefox


    I'm using Ubuntu 12.04, but the following problem occurs on Windows 7 as well.

    I've stumbled upon a somewhat strange problem: I've downloaded and installed Sencha 2.0.1.1 properly, and smae for the SDK. I can create a project (e.g. "sencha generate app GS ../GS"), but It isn't shown properly on either Chrome or Firefox.
    In Firefox it doesn't display any graphics, and looks nothing like the examples in the first tutorial. On chrome, the loading screen is stuck, and I cannot proceed further.

    I should mention that I'm not using a local-host to open the project, I just open the index.html file directly from FF/Chrome.

    Edit: After installing an apache server on my system, it works okay with chrome, when opening the app through the address "localhost/GS". Firefox still behives weird, though:

    GS.jpg

  2. #2
    Sencha User jerome76's Avatar
    Join Date
    Apr 2012
    Location
    New Jersey
    Posts
    1,149
    Vote Rating
    99
    jerome76 is just really nice jerome76 is just really nice jerome76 is just really nice jerome76 is just really nice jerome76 is just really nice

      0  

    Default


    Firefox is not a webkit browser so all the css webkit properties will not work.

    If you'd like to notify users that the browser is not supported, you can include this in your Ext.application:
    Code:
    ...
    launch: {
        if(Ext.browser.is.WebKit){
            alert("The current browser is unsupported.\n\nSupported browsers:\n" +
                "Google Chrome\n" + 
                "Apple Safari\n" + 
                "Mobile Safari (iOS)\n" + 
                "Android Browser\n" + 
                "BlackBerry Browser"
            ); 
        }
        else{//launch app
            ...
        }
    }

Thread Participants: 1

Tags for this Thread