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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T15:24:41+00:00 2026-05-27T15:24:41+00:00

I have a following scenario. A list of table rows. … <tr><td><a href=# class=item

  • 0

I have a following scenario.

  • A list of table rows.
...
<tr><td><a href="#" class="item" id="1">get items</a></td></tr>
<tr><td><a href="#" class="item" id="2">get items</a></td></tr>
<tr><td><a href="#" class="item" id="3">get items</a></td></tr>
...

An entire table is created from “TableView” Backbone object and each row of the table is created from “TableRowView” Backbone object.

  • When clicking on the “get items” link in each row, I request the server to grab a list of objects. These objects are stored in its own model and collection. In turn, they have their own view object “TableRowListView”.

Up to this point, everything works fine. What I want to do is to get the “el” of the current “TableRowListView” returned and append it to the table row that was clicked. So the end result would look something like

...
<tr><td>
    <a href="#" class="item" id="1">get items</a>
    <ul>
      <li>table row list object</li>
      <li>table row list object</li>
    </ul>
  </td></tr>
<tr><td><a href="#" class="item" id="2">get items</a></td></tr>
<tr><td><a href="#" class="item" id="3">get items</a></td></tr>
...

So I guess I’m having trouble trying to “insert” a view object into another view.

  • 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-05-27T15:24:41+00:00Added an answer on May 27, 2026 at 3:24 pm

    If you look at the free chapter on collection view from the new Recipes with Backbone book you’ll see code like this:

    addOne: function(model) {
      view = new Views.Appointment({model: model});
      view.render();
      $(this.el).append(view.el);
      model.bind('remove', view.remove);
    }
    

    The author is creating a sub-view for an item and then appending the view’s element to the element for the containing view. Is that what you’re after?

    If so then I’d recommend that chapter (which you can download in PDF form from the website) and see if it clarifies things further. It’s a short read (six pages I think).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Consider following scenario: I have RESTful URL /articles that returns list of articles user
I have the following scenario :- template <typename T> class Base { public: virtual
I have the following scenario: Entities are loaded from the database. One of them
I have the following scenario. I have created an ASP.NET web application (framework 3.5)
Suppose I have a table with the following columns (a list of words): word:
Scenario: I have the following structure; Group (parent) -> Item (child). A Group can
The scenario is I have got 2 dropdown list and a table in which
I have the following scenario: Table 1: articles id article_text category author_id 1 hello
I have the following scenario and I'm not sure if I should use Class
The Scenario: I have the following (simplified) database table scenario: ID ProductName ProductCategory Colour

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.