:: Forum >> Version 1 >>

Blinking row

Is it possible to make a grid row blink?
Hafeez
Tuesday, November 8, 2005
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
Tuesday, November 8, 2005
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
Tuesday, November 8, 2005
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
Tuesday, November 8, 2005
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
Wednesday, November 9, 2005
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
Wednesday, November 9, 2005



This topic is archived.

Back to support forum

Forum search