Title: Trigger event when loaded
Last modified: August 20, 2016

---

# Trigger event when loaded

 *  [aorcsik](https://wordpress.org/support/users/aorcsik/)
 * (@aorcsik)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/trigger-event-when-loaded/)
 * With a tiny little addition I was able to bind events to when the Widget Area
   is loaded:
 *     ```
       [ajax-widget-area.php:52]
       $('#ajaxSidebar').html(response).trigger("ajaxloaded");
       ```
   
 * After this, some can easily bind a function for `ajaxloaded` event elsewhere:
 *     ```
       $('#ajaxSidebar').bind("ajaxloaded", function() { ... });
       ```
   
 * Really like this plugin! 😀
 * [http://wordpress.org/extend/plugins/ajax-widget-area/](http://wordpress.org/extend/plugins/ajax-widget-area/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [ChrisHilditch](https://wordpress.org/support/users/chrishilditch/)
 * (@chrishilditch)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/trigger-event-when-loaded/#post-3609899)
 * Thanks Orcsik, that’s a great idea!

Viewing 1 replies (of 1 total)

The topic ‘Trigger event when loaded’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/ajax-widget-area.svg)
 * [Ajax Widget Area](https://wordpress.org/plugins/ajax-widget-area/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ajax-widget-area/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ajax-widget-area/)
 * [Active Topics](https://wordpress.org/support/plugin/ajax-widget-area/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ajax-widget-area/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ajax-widget-area/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [ChrisHilditch](https://wordpress.org/support/users/chrishilditch/)
 * Last activity: [13 years, 1 month ago](https://wordpress.org/support/topic/trigger-event-when-loaded/#post-3609899)
 * Status: not resolved