Many programming languages supports events or notifications. The basic concept is that you can subscribe to these events and the application will send you a notification or run some code when they accour, so you will have a chance to do something you may want to be done in certain points of your program. For example change the site's background when the slider switching slides.
In Javascript these events commonly used with callback functions. Instead of sending and receiving notifications, you just pass an anonymous function (also known as blocks in other languages) with your own code to a function or method call as a parameter and the application will execute it when the time has come. Cute Slider uses this kind of event handling.
So we now by now the technique about event handling, lets see which kind of event Cute Slider has:
This simple example will alert the user when Cute Slider changed a slide. To do that we have to pass this function to the Cute.SliderEvent.CHANGE_END event.
function() { alert('The slider switched to a new slide!'); }
If you want to achieve something with event callbacks, you probably instrested in our API. Please continue reading with the next section of this document.