View Full Version : Dataview with jsonStore not working in IE6

3 Jun 2011, 11:40 AM
It works in FF4.

When I call dataView.bindStore(store) it show me this error:
'undefined is null or not an object' - Line 1719 (ext-all-debug-w-comments.js)

this it my Ext.onReady declaration of the dataview and its template:

tplOperando = new Ext.XTemplate.from('templateOperandoTranspetro');

dvOperando = new Ext.DataView({
id: 'operando',
renderTo: Ext.getBody(),
tpl: tplOperando

This is templateOperandoTranspetro:

<div id="templateOperandoTranspetro" style="visibility: hidden;" class="x-hide-display">
<tpl for='.'>
<table border="0" class="conteudo" style="display:inline; width: 25%">
<th colspan="2">
<td colspan="2">
<td colspan="2">
<td align="right">
<td align="right">

this is the moment when I call bindStore. It is inside a 'load' listener from a JsonStore:

'oper' is a valid jsonStore.


and finnally, the line with the error in ext-all-debug-w-comments.js (in red)

jsSelect: function(path, root, type){
// set root to doc if not specified.
root = root || document;

if(typeof root == "string"){
root = document.getElementById(root);
var paths = path.split(","),
results = [];

'path' is undefined here.

It appears it's a problem with my template, but I can't figure it out.

Thanks in advance.