XML Grid with Image
Hi, i'm making a grid that reads from a XML file and depending on the value of a cell, it puts an image (High, Normal, Low). Now i know that this has been discused many times in this forum (http://www.activewidgets.com/javascript.forum.14583.2/how-do-i-add-an.html), but the solution it's not working for me, and i read lots of more post and still nothing. Here's my piece of code:
<style type="text/css" >
.aw-image-favorites {background: url(favorites.png)}
</style>
....
<script>
var table = new AW.XML.Table;
table.setURL("XMLfile.xml");
table.request();
var obj = new AW.UI.Grid;
obj.setColumnCount(4);
obj.setCellModel(table);
document.write(obj);
</script>
I tried using the obj.setCellImage("favorites", 1, 1); but i doesn't work, it just display the grid without any image. Sorry if i wrote too many, i just want to make myself clear. Thanks for any help in advanced!!
<style type="text/css" >
.aw-image-favorites {background: url(favorites.png)}
</style>
....
<script>
var table = new AW.XML.Table;
table.setURL("XMLfile.xml");
table.request();
var obj = new AW.UI.Grid;
obj.setColumnCount(4);
obj.setCellModel(table);
document.write(obj);
</script>
I tried using the obj.setCellImage("favorites", 1, 1); but i doesn't work, it just display the grid without any image. Sorry if i wrote too many, i just want to make myself clear. Thanks for any help in advanced!!
Rauldinho
February 19,