3.2.0

need some help (data binding with javascript array)

Hi, i'm using a php script to create a javascript array from an access database..

So I can have an array like that :
var myData=[["string1"],["string2"],["string3"]];

Then I want to create a grid like in that tutorial :
http://www.activewidgets.com/documentation/tutorial/grid/data-jsarray.htm

But it seems not to work...
here's my code...

<script language="javascript">
<!--
var myData=[["string1"],["string2"],["string3"]];
var obj = new Active.Controls.Grid;

obj.setProperty("column/count", 1);
obj.setProperty("row/count", 3);
obj.setProperty("data/text", function(i,j){return myData[i][j]});

document.write(obj);
//-->
</script>

I can't see what's wrong, so if anyone could help me please..
Thanks!


ARkal
March 10,
It seems that the error occur when on that line :

var obj = new Active.Controls.Grid;
Arkal
March 10,

This topic is archived.

See also:


Back to support forum