Hi,
I have the following code:
Code:
function showFairs() {
var fairGridStore = new Ext.data.DirectStore({
directFn: Fair.GetUpcommingFairs,
root: 'data',
idProperty: 'FairID',
totalProperty: 'total',
fields: fairRecord
});
fairGridStore.load();
var fairTpl = new Ext.XTemplate(
'<tpl for=".">',
'<hr />',
'{Description}<br>',
'<span class="date">{[renderDateSimple(values.FromDate)]} tot {[renderDateSimple(values.ToDate)]}</span><br />',
'</tpl>');
var fairView = new Ext.DataView({
store: fairGridStore,
tpl: fairTpl,
renderTo:'Fairs'
});
}
When the dataview is active it I get an error, when it is commented out it runs good (although no render of the data). I get an undefined error on line 1123 in the ext-all-debug of version 3.3.0.
Code:
jsSelect: function(path, root, type){
root = root || document;
if(typeof root == "string"){
root = document.getElementById(root);
}
var paths = path.split(","),
results = [];
This happens only in IE7. I tested this with multiple of the above functions (I have 3 in my website, and all give the same problem). In my mainpage I have this div
<div id="Fairs"></div>
Im not sure what I'm doing wrong, but I hope someone can help me out.
Patrick