thinkbuildblog

Tag Archives: custom events

Custom events in Magento

Posted by Emmanuel Etienne

manny-etienne-gct

This year, I’ve been working extensively in Magento, which is a change of pace from the custom-coded, “from the ground up” projects I’d been doing previously. I was excited about entering this “brave new world” because with my background, I felt I could take quickly to find ways to extend Magento’s core functionality.  One example that was brought to my attention was custom events. (more…)

“Pub/Sub” with jQuery

Posted by Kurtis Kemple

“Pub/Sub” is short for publishing and subscribing. It is derived from the observer pattern (click here for more on the observer pattern). The overall idea is that when a certain event fires (or action takes place), listeners that are subscribed to it execute. This allows for extensive asynchronous development as you can easily hook on to your jQuery AJAX callbacks and keep clean and concise code.

With the great advancements that have come along with AJAX (if you are unfamiliar with AJAX, read this first), there have also been some problems. (more…)