PDA

View Full Version : Problem changing the Store URL dynamically in IE8



bevara.siva
27 Jun 2014, 1:51 AM
Hi,

We are using Ext Js 4.2.2
We need to change the store URL dynamically. We are changing the store url as below.




var store = Ext.getStore("EmployeeStore");
var storeUrl = "data/" + column.value[0] + ".json";
store.getProxy().url = storeUrl;
store.load();



We are using this store to load a grid in a window. This code is working with IE9, Chrome and Mozilla.
But we are facing issue with this in IE8. Its showing the error in ext-dev.js at style[hook.name] = value;
hook.name is zIndex and value is NaN.

How can I fix this in IE8.

Following is the function we are using:



onColumnItemClick: function (column) {


var title = column.yField.toString().replace("_", " ");


var store = Ext.getStore("EmployeeStore");
var storeUrl = "data/" + column.value[0] + ".json";
store.getProxy().url = storeUrl;
store.load();

Ext.create('Ext.window.Window', {
title: title,
height: 250,
width: 415,
layout: 'fit',
modal: true,
items: {
xtype: 'gridpanel',
header: false,
autoScroll: true,
bodyBorder: true,
columnLines: true,
rowLines: true,
store: store,
columns: [
{
xtype: 'gridcolumn',
dataIndex: 'Employee_ID',
text: 'Employee ID'
},
{
xtype: 'gridcolumn',
dataIndex: 'Name',
text: 'Name'
}
]
}
}).show();
}



FYI: I have this error only when I use this store (with dyanamic url) in a window.

Please help!!!

Regards,
SivaPrasad.B

Gary Schlosberg
10 Jul 2014, 7:03 AM
Here's a couple of older threads that might help.
http://www.sencha.com/forum/showthread.php?109525
http://www.sencha.com/forum/showthread.php?113676
(http://www.sencha.com/forum/showthread.php?113676)
Can you change parameters instead of the entire URL?