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 9128043
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T07:25:13+00:00 2026-06-17T07:25:13+00:00

Using latest ember.js build, I’m trying to use a controller action to create a

  • 0

Using latest ember.js build, I’m trying to use a controller action to create a childView and push it into the current view. But I can’t figure out how to talk to the associated view.

In my search.handlebars:

<p>Results:</p>
{{#each animal in someResults}}
  <li><a {{action showAnimal animal}}>{{animal.species.commonName}}</a></li>
{{/each}}

In App.SearchController, I have:

showAnimal: function(animal) {
  // Now what?? The below is obviously wrong
  this.animalView = App.AnimalView.create({controller: animal});
  var childView = App.SearchView.createChildView(this.animalView);
  App.SearchView.get('childViews').pushObject(childView);
}

The objects visible from within showAnimal are:

  • animal – ok fine
  • this.container – don’t see anything helpful in here
  • this.target – seemingly the router?

Anyway, I’m baffled. Any help appreciated.

  • 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-17T07:25:15+00:00Added an answer on June 17, 2026 at 7:25 am

    Recognizing my question was a bit arcane / situation specific, here is what I ultimately did in case anyone cares. Note that some APIs have subsequently changed.

    Recall that I’m trying to get a jQuery UI dialog to popup in my current view. Luke Melia’s great article on this topic was the basis for my original approach.

    In handlebars:

    {{#each animal in someResults}}
      <li><a {{action showAnimal animal target="view" href=true}}>{{animal.species.commonName}} </a></li>
    {{/each}}
    

    Then in App.SearchView:

    App.SearchView = Ember.View.extend({
      templateName: 'my-appname/~templates/search',
      showAnimal: function(animal) {
        animalDialog = App.AnimalView.create()
        animalDialog.set('context', animal);
        animalDialog.append();
      }
    });
    

    And just for completeness, here’s the AnimalView.

    App.AnimalView = JQ.Dialog.extend({
      templateName: 'my-appname/~templates/animal',
      autoOpen: true,
      modal: true,
      closeText: "Ok"
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to build a simple ember application (filebrowser) using an AMD approach (yes
I am using latest Xcode, and trying to find memory leaks. When i use
I pulled the latest source from github. I'm trying to build: stephan@E6520:~/dev/ember.js$ rake rake
I am using latest Pyramid to build a web app. Somehow we have started
I am using the latest NHibernate 2.1.0Beta2. I'm trying to unit test with SQLite
I'm trying to edit my sidebar.php file in my current them WP is using
I've got some of the following code: https://gist.github.com/c111cf9a240a078c9f6a (in rails) I'm using ember-latest: //
I am using latest Apache CXF to create a webservice. I have configured ws-security
I am using latest google chrome..I am trying to implement HTML5 indexedDB example. AIM
I am using the latest fancybox 1.3.1 and jquery 1.6. I am trying to

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.