jfanaian
3 Aug 2007, 1:58 PM
I am trying to create a data grid using a JsonStore object using an app written in CodeIgniter but a timestamp is added at the end of the url in the format ?_dc=11.... and breaks the URLs that should be in the format that use /param/param/param.
Here is my current code:
var productStore = new Ext.data.JsonStore({
url: "<?=site_url('admin/product/get/json/') ?>",
fields: ['id', 'name'],
ciRules: true
});
var productColumns = new Ext.grid.ColumnModel([
{header: "Id", width: 120, dataIndex: "Id"},
{header: "Name", width: 120, dataIndex: "Name"}
]);
var productGrid = new Ext.grid.Grid('product-grid', {
ds: productStore,
cm: productColumns
});
productGrid.render();
productStore.load();
The current code sends the request but it returns a 404 error. How can I modify the way the timestamp is added? It would work if the request ended in /timestamp instead of ?_dc=timestamp. Is there a way to change this?
Thanks
Here is my current code:
var productStore = new Ext.data.JsonStore({
url: "<?=site_url('admin/product/get/json/') ?>",
fields: ['id', 'name'],
ciRules: true
});
var productColumns = new Ext.grid.ColumnModel([
{header: "Id", width: 120, dataIndex: "Id"},
{header: "Name", width: 120, dataIndex: "Name"}
]);
var productGrid = new Ext.grid.Grid('product-grid', {
ds: productStore,
cm: productColumns
});
productGrid.render();
productStore.load();
The current code sends the request but it returns a 404 error. How can I modify the way the timestamp is added? It would work if the request ended in /timestamp instead of ?_dc=timestamp. Is there a way to change this?
Thanks