Hi,
I have the following setup:
var Dash = {
nextIndex: 0,
dashboards: <some value>,
display: function()
{
var dashboard = Dash.dashboards[Dash.nextIndex];
document.getElementById("iframe3").src = dashboard.url;
Dash.nextIndex = (Dash.nextIndex + 1) % Dash.dashboards.length;
setTimeout(Dash.display, dashboard.time * 1000);
}
};
With this setup, is it possible to set programmatically, the value of "some value" prior to this declaration?
In addition, is it possible to have be a javascript function call that retunrs a value to dashboards?
Thanks.