3.2.0

Blinking row

Is it possible to make a grid row blink?
Hafeez
November 8,
It might be possible in some versions of Netscape, but it sure would be annoying.

H1 {text-decoration: blink}

Or create a JavaScript function to turn the Visible property on/off.
Jim Hunter
November 8,
I agree it's annoying but it is to display real time alarms for an industrial company.
The whole point is to be annoying so that they acknowledge the alarm which will in turn turn off the blinking.

As for the JavaScript function... I'm not too familiar with it... is that by using some sort of timing function that is called every second or so?
Hafeez
November 8,
Yes, use the setInterval command to call a function every xxx milliseconds. In that function just invert the Visible property of the row template.
Jim Hunter
November 8,
thank Jim
Ok I have the function working in a test web page, but I can't get it working with the Grid rows.

I tried to set an onload event to the row but it doesn't seem to work

row.setEvent("onload", function(){this.action("blinkAction")});

is "onload" not a valid event?

Hafeez
November 9,
onLoad is an event that is triggered at the BODY level once the page is fully loaded, and not at a component level. I suggest that you create a function to handle the blinkng that accept an object as a parameter and let the function run all the time. Then when you want to set a row to blinking pass in a handle to it into your function. Allow for turning it on/off. And allow for more then one row blinking.
Jim Hunter
November 9,

This topic is archived.

See also:


Back to support forum