Events



Uppercase version: XYZ


JQuery events and Ajax

The EventsController extends JQueryController. This arms it with the ability to invoke JQuery objects from properties marked with @id metatag.

	@uri('/(events)/') 
	class EventsController extends JQueryController {	
		// Below: shorthand for 
		// private var btnTest = new JQuery('#btnTest');
		@id private var btnTest:JQuery;	
		...

This also makes it possible to bind handlers to events:

	public function new() {		
		super(); // <--- Must call parent constructor
		btnTest.click(function(e) {
			Lib.alert('btnTest is clicked!');
		});
		...
This text should be replaced...