3.0 beta 2

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 :

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]});


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

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

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

This topic is archived.

See also:

Back to support forum


Version 2

Looking for AW 2.6 ?
The old site is here.