:: Forum >>

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>
Stewie
Monday, April 9, 2007
http://www.activewidgets.com/javascript.forum.9812.5/setcelllink-in-2-0.html
Stewie
Monday, April 9, 2007
The problem might be that the cell link is cleared when the XML responce arrives. Try adding getLink method to the table object -

table.getLink = function(column, row){
return "#" + row;
}
Alex (ActiveWidgets)
Tuesday, April 10, 2007

This topic is archived.


Back to support forum

Forum search