Why doesn't this work!!!?? going crazy
Hello, this is a grid that loads the info from a XML file. The problem is that it doesn't apply the LINK template to the column. Here is the code:
<body>
<script>
var myLinks = function(column, row){
return "#" + row;
}
var table = new AW.XML.Table;
table.setURL("XmlFile.php?rand="+Math.random());
table.request();
var obj = new AW.UI.Grid;
obj.setColumnCount(5);
obj.setCellModel(table);
obj.setCellLink(myLinks);
obj.setCellTemplate(new AW.Templates.Link, 0);
document.write(obj);
</script>
</body>
<body>
<script>
var myLinks = function(column, row){
return "#" + row;
}
var table = new AW.XML.Table;
table.setURL("XmlFile.php?rand="+Math.random());
table.request();
var obj = new AW.UI.Grid;
obj.setColumnCount(5);
obj.setCellModel(table);
obj.setCellLink(myLinks);
obj.setCellTemplate(new AW.Templates.Link, 0);
document.write(obj);
</script>
</body>
Stewie
April 9,