PDA

View Full Version : Dinamic loading not work



galdaka
26 Oct 2011, 12:28 AM
<html>
<head>
<title>Test 1</title>
<link id="mainStyle" rel="stylesheet" type="text/css" href="ext-4.1-pr1/resources/css/ext-all-gray.css" />
<link rel="stylesheet" type="text/css" href="css/loading.css" />
<link id="bugsStyle" rel="stylesheet" type="text/css" href="css/bugs.css" />
<link id="portalStyle" rel="stylesheet" type="text/css" href="css/portal.css" />
<link rel="icon" type="image/png" href="img/index/favicon.png">
<script type="text/javascript" src="ext-4.1-pr1/ext-all-dev.js"></script>
<script type="text/javascript" src="app.js"></script>
<script type="text/javascript">
Ext.Loader.setConfig({enabled: true, disableCaching: false});
Ext.Loader.setPath('Ext.app', 'classes');
Ext.require([
'Ext.container.Viewport*',
'Ext.resizer.Splitter',
'Ext.state*'
]);
Ext.onReady(function(){
Ext.state.Manager.setProvider(new Ext.state.CookieProvider());
Ext.create('Ext.app.MainViewport');
});
</script>
</head>
<body>
<div id="loading"><span class="title"></span><span class="logo"></span></div>
</body>
</html>

Not work. The loader not load any .js in "classes" directory.

If I change the directory for: "ext-4.0.2a" work without problems. Any change in dinamic loading?

Greetings,