ETC
RSS Links
Tag Cloud
5.3 abstract actionscript actionscript3 Adapter adobe Advance ajax Anonymous Anonymous function apache Array array_walk article as as3 as3corelib Auth Base64 basics bind bitmap bug bytearray callback catch chart charts class cleanup client closures closures function CodeIgniter commerce communicate Communicator compiler console console.log controller crypto css custom event Decryption design patterns dialog dispatch div download Dwoo ecommerce editor Encode Encryption engine ereg ereg_replace error event example experiment explorer facebook Factory Factory Method file Flash Flash Media Server FMS Framework free function garry GNU GPL grchart hash link html ide ie ifconfig image insert internet explorer ip javascript jpeg jQuery jquery plugin js json lachman layer Layout Solution lib libary linux load local localhost log login manager MD5 MDB media microsoft Migrating Mime Type module modules mod_rewrite mvc mysql News Object Oriented old one time link one time url OOP Open Power Template open source oscommerce package pattern PEAR PEAR::Auth php php4 php5 php 5.3 phpclasses.org PHP Framework phpwebcommerce plugin PNG popup posfix POST preg_match preg_replace Presentation problem rect regex regexp request Requirements screen screen manager script select send server session shopping Shopping Cart singleton smarty Solution source code Specification sql ssh static STP table template templates this tooltip trigger try Tutorial UI update url User Interface users utf-8 util utils validate variables vi view vim virus warning widget window wordpress xml XTemplate yourinspirationweb
Custom Events in jQuery – bind & trigger
Sometimes custom events can make the life more easy.
If you want to communicate between classes and other object on the page you can simply
trigger a custom event with data.
First of all we create data exchange div:
Now we need to listen the “data exchange” div to receive the events.
2
3
alert(event + ": " + data);
});
We show alert popup when we receive the event “event_name”.
The next step is dispatch the event to the “data exchange”:
Have a nice day
Garry Lachman