Event Handling in Joomla Custom Component

571 views Asked by At

I want to ask expert joomla devs out there, about event handling(dropdown values etc.) On how is it coded? In .NET(VB/C#) there is a custom event handler for every control in the User Interface during development (e.g button1_click). Any references?

2

There are 2 answers

2
jdog On

There are aspects to this answer.

Firstly, I need to make sue that you are comparing .net web development with Joomla web development here. I would be surprised that every click on a .net control can be hooked into with a callback architecture, but then again I am not a .net developer.

Joomla has an event trigger system, which can be used in conjunction with Joomla plugins, see here: http://docs.joomla.org/Plugin/Events

On top of this, many more complex components define their own events, good examples are jEvents and jSeblod

0
tonypartridge On

This isn't built in the core of Joomla! and you would need to write some JavaScript/jQuery to handle this.

Alternatively, you could look at the likes of RS Forms which allows conditional displays for many field types.