PDA

View Full Version : IE 8 and simple Chart



psmacarov
2 Feb 2012, 1:43 AM
I think that it is must work but i can't see what's wrong with my code, IE get Error
string: 16762
symbol: 14
Error code: 0
Message: 'length' - is null or not object
URL: http://localhost/testproj/ext4/ext-all-debug.js
Please Check My code

My Chart



Ext.define('testproj.view.layout.main', {
extend: 'Ext.Viewport',
alias : 'widget.main',
title : '???????? ???????',
layout: {
type: 'border',
padding: 5
},
defaults: {
split: true
},
initComponent: function() {

this.items = [
{
region: 'north',
xtype: 'toolbar',
collapsible: false,
split: true,
height: 30,
items: [
{
id: 'topBar',
text: '???????? ??????? v 1.0',
enableToggle: false
}
]

},
{
id: 'vbox',
region: 'center',
defaults :{
autoScroll: true
},
layout: {
type: 'vbox',
pack: 'start',
align: 'stretch'
},
defaults: {
frame: true
},
items: [
Ext.widget('Listmodules'),
Ext.widget('graph4modules')
]
}
];
this.callParent(arguments);
}
});


My store



Ext.define('testproj.store.graphStore', {
extend: 'Ext.data.Store',
alias: 'widget.graphStore',
model: 'testproj.model.graph_model'
});



My Model



Ext.define('testproj.model.graph_model', {
extend: 'Ext.data.Model',
fields:
[
{name: 't', type: 'int', mapping: '@t'},
{name: 'v', type: 'int', mapping: '@v'}
],
proxy: {
type: 'ajax',
actionMethods: 'POST',
pageParam : '',
startParam: '',
limitParam: '',
url : 'server/engine.php',
reader:{
type: 'xml',
record: 'd',
root : 'element'
}
}
});


Add Chart



.....
{
id: 'vbox',
region: 'center',
defaults :{
autoScroll: true
},
layout: {
type: 'vbox',
pack: 'start',
align: 'stretch'
},
defaults: {
frame: true
},
items: [
Ext.widget('Listmodules'),
Ext.widget('graph4modules')
]
}
......


Thank;s a lot!

mitchellsimoens
2 Feb 2012, 8:41 AM
Does it work without data? Have you simplified to find where the bug is happening?

psmacarov
2 Feb 2012, 8:16 PM
No i had not simplified , without data same error, it's no renderred - IE Error and white screen