Login Register

How program control emit event ?

Trigger a type of event on every matched element.

Example1: jquery.trigger()

Example 2:
The submit( ) and reset( ) methods allow a form to be submitted or reset under program control.

Example 3

dojo.subscribe("alerts", null, function(caption, message){ alert(caption + "\n" + message); };
dojo.publish("alerts", [ "read this", "hello world" ]);

------------
dojo.connect(obj, "onclick", ui, "update");
How hand emit a event (like onclick) ???

Any ideas?

Thanks!