PDA

View Full Version : Loading image get stuck on Chrome, app not shown properly in Firefox



pelegs
13 Aug 2012, 12:36 PM
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:

37914

jerome76
13 Aug 2012, 2:35 PM
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:


...
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
...
}
}