Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8616551
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T05:38:50+00:00 2026-06-12T05:38:50+00:00

I have complex backbone application with many nested views ( marionette layouts and regions

  • 0

I have complex backbone application with many nested views ( marionette layouts and regions ) and I already use marionette eventmanager to coordinate between these views. But half way through the coding I realize that I am in the process of creating too many events and to complicate even further I have few events triggering more than one actions.

How are events being managed by other complex backbone apps out there.. Any guidelines , best practices, etc., to keep in mind when dealing with events before I dig myself into a bigger hole.

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T05:38:52+00:00Added an answer on June 12, 2026 at 5:38 am

    I’m not sure which events framework you’re using, so without any assumptions, make sure that you’re using Marionette’s EventBinder that is available directly in all Marionette views, and optionally the EventAggregator for app-level events that cross too many boundaries and for decoupling modules.

    I’m not an expert on the subject, so the following is not authoritative in any way:

    • If a parent view needs to trigger an action in a subview in the same module, then using method calling directly rather the event mechanism.
    • If a subview needs to trigger an action in the parent view, then use the EventBinder as follows:

    In the parent view:

    this.bindTo(subview, 'myscope:myevent', this.myevetHandler);
    

    In the subview:

    this.trigger('myscope:myevent');
    
    • For cross-module or cross-view event propagation, basically app-wide events, use the application’s EventAggregator:

      MyApp = new Backbone.Marionette.Application();
      
      MyApp.vent.on("foo", function(){
        alert("bar");
      });
      
      MyApp.vent.trigger("foo"); // => alert box "bar"
      
    • For reusable modules that shouldn’t depend on a specific application object, you can use a custom EventBinder or EventAggregator.

    For a longer discussion, see:

    • When to use the EventBinder wiki page; and
    • References, Routing, And The Event Aggregator: Coordinating Views In Backbone.js by Derick Bailey.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a very complex Backbone application with many views/Models and collections. at times
I have to build a pretty complex application using Backbone Marionette. The user interface
I have complex GUI application written in Python and wxPython. I want it to
I have a complex set of bindings that include many private bindings to solve
I am using WCF and REST, and I have complex types, which are working
I have some complex message to show inside of a flash message so instead
We have a complex app that serves AJAX JSON streams (using ADO to grab
I have several complex data structures like Map< A, Set< B > > Set<
I have a complex RIA client that communicates with a WCF SOAP web service,
I have a complex MySQL problem. SELECT * FROM banners, content_id_country, languages WHERE content_id_country.content_id

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.