3.2.0

problem with displaying "Loading, please wait..." message

Hello

I want to display this message while the grid is loading up. At the start after I create the grid, i have the following lines of code,

var obj = new Active.Controls.Grid;
obj.setStatusProperty("code", "loading...");
document.write(obj);


...followed by all the code necessary for the grid. i.e.,

obj.setRowCount(mydata.length);
...etc


Then I have at the end,

// write grid html to the page
obj.setStatusProperty("code", "");
obj.refresh();
document.write(obj);
setTimeout('obj.refresh()', 0);
document.close();


However I am getting a javascript error saying it doesnt recognise the method, ie "Object doesnt support this property or method" for the line

obj.setStatusProperty("code", "loading...");

Can you tell me where I am going wrong?
Lisa
July 20,
Hello

The previous post contained a few typos. In my code is the following,

var obj = new Active.Controls.Grid;
obj.setStatusProperty("code", "loading");
document.write(obj);

...followed by all the code necessary for the grid. i.e.,

obj.setRowCount(mydata.length);
...etc


Then I have at the end,

obj.setStatusProperty("code", "");
setTimeout('obj.refresh()', 1000);

document.write(obj);


Once again, its still not working out for me. If you could shed any light on this it would be most helpful.
regards
July 20,
Older versions of activeui did not support this method.
Try using the latest version 1.0 grid.js.
Gerard
August 2,

This topic is archived.

See also:


Back to support forum