jcl.DataFadeBehavior

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

Attributes

highcolor

The highlight color. The usually used yellow is the defaut value.

Event handlers

onclick

Also start the fade effect when the user clicks onto the field.

Public methods

init ()

Initialze the JavaScript control.

setData (val)

Overwrite the setData function to add a fading effect when the value has changed.

Private elements

_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.