PDA

View Full Version : Error :[Ext.Loader] Failed Loading



SBSB
29 Nov 2013, 5:18 AM
I have a problem with the following code, by running the code the Firefox javascript console gives the error : "Error: [Ext.Loader] Failed loading 'http://localhost/helloext/extjs-4.2.1/src/view/TableChunker.js', please verify that the file exists @ http://localhost/helloext/extjs-4.2.1/ext-all-dev.js:10857"

The code is :

Ext.define('MyApp.view.clients.ClientsGrid',{
extend : 'Ext.grid.Panel',
alias : 'widget.clients.grid',
requires : [
'Ext.view.TableChunker',
'Ext.selection.RowModel',
'Ext.grid.column.Column'
],

border : false,

initComponent : function(){
var me = this;

me.store = me.buildStore();
me.columns = me.buildColumns();

me.callParent();

me.store.load();
},

buildColumns : function(){
return [
{text:'Name',dataIndex:'name',flex:1},
{text:'Contact',dataIndex:'contact',flex:1},
{text:'Address',dataIndex:'address',flex:1},
{text:'Phone',dataIndex:'phone'}
];
},

buildStore : function(){
return Ext.create('MyApp.store.clients.Clients');
}
});


But by using this, <script type="text/javascript" charset="utf-8" src="http://cdn.sencha.io/ext-4.1.0-gpl/ext-all-debug.js"></script>
<link rel="stylesheet" href="http://cdn.sencha.io/ext-4.1.0-gpl/resources/css/ext-all.css" />
all are correct.
I am using the Ext js sdk 4.2.1 and the XAMPP server(Apache)


Any help please.

Gary Schlosberg
29 Nov 2013, 5:06 PM
Looks like the TableChunker class was cut from the framework in a rewrite needed to improve performance moving forward. I believe that the gridView rowTpl and cellTpl may be used in a Feature extension, as they take the place of the element rendering performed by TableChunker.

SBSB
2 Dec 2013, 3:57 AM
Please explain me by giving a example