problem when two grids populated dynamically
I created two grids dynamically. I am having calendar images in two grids. when I click I am sending the number of myDataArray (myDataArray1) but I am not able to send individual grid objects. I am populating the grids by writing the code inside a function and passing dynamically the gridno and grid object as parameters to the function.
for(var i=0;i<2;i++)
{
.........
var gridno = "grid"+i;
var gridobj = "gridobj"+i;
createGrid(gridno,gridobj);
...
}
function createGrid(gno,gobj)
{
gno = new Active.Grid...
.......
}
for(var i=0;i<2;i++)
{
.........
var gridno = "grid"+i;
var gridobj = "gridobj"+i;
createGrid(gridno,gridobj);
...
}
function createGrid(gno,gobj)
{
gno = new Active.Grid...
.......
}
kamesh
October 18,