Implementation of a JavaScript Behavior for a data output control that signals new values by showing a fading yellow background color.
Source file: ~/controls/DataFade.js
Inherits from: jcl
highcolor
The highlight color. The usually used yellow is the defaut value.
onclick
Also start the fade effect when the user clicks onto the field.
init ()
Initialze the JavaScript control.
setData (val)
Overwrite the setData function to add a fading effect when the value has changed.
_orgcolor
_count
_timer
_start ()
Start the fade effect.
_getColor (c)
Convert a color attribute #rrggbb or rgb(r, g, b) to a color object.
_fade ()
Implementation of the fade effect by using a timer.
This page is part of the http://www.mathertel.de/AJAXEngine/default.aspx project. For updates and discussions see The AJAX Engine blog.