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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T04:22:10+00:00 2026-06-10T04:22:10+00:00

/START description of why I’m doing a ‘load more’ type of interaction: user gets

  • 0

/START description of why

I’m doing a ‘load more’ type of interaction: user gets at bottom of a page, I load more content.

As I’m using a plugin that formats content in a ‘pinterest-style’ (masonry), I need to take the output of a rest call, formatted using an ember view, and i’m doing something like:

<div id="list">
</div>

<div id="hidden" style="display:none">
  {{#each item in App.itemsController}}
    test {{item.id}}
  <br />
  {{/each}}
</div>

What I want to do is, load the content in the hidden div, and then pass its HTML generated content to the plugin to process in my formatted list view.

If I just copy the #hidden content, the Ember scripts get in, and on subsequent ‘load more’, content is inserted in the #list, in addition of going in the #hidden div.
That’s because I copied the entire handlebars.

So I get rid of the container tag, the one I supposed was wrapping the controller content binding, but even when stripping it from the content I pass to #list, the #list still auto-updates when a ‘load more’ is called.

I know that’s a dirty hackish thing, but in order to improve performance in the client I must take a similar route.

/END description of why

//ACTUAL QUESTION 😉

Given this background, the question is, stripping the container metamorph script tags (like the ones here below), and just take the content inside them, shouldn’t get rid of the auto-updating content functionality?

<script id="metamorph-X-start" type="text/x-placeholder"></script>

//ALL THE CONTENT

<script id="metamorph-X-end" type="text/x-placeholder"></script>

Inside those, I just have the actual content generated, like:

<script id="metamorph-9-start" type="text/x-placeholder"></script>
  test <script id="metamorph-59-start" type="text/x-placeholder"></script>2873<script id="metamorph-59-end" type="text/x-placeholder"></script>
  <br>
<script id="metamorph-9-end" type="text/x-placeholder"></script>

<script id="metamorph-10-start" type="text/x-placeholder"></script>
  test <script id="metamorph-60-start" type="text/x-placeholder"></script>2872<script id="metamorph-60-end" type="text/x-placeholder"></script>
  <br>
<script id="metamorph-10-end" type="text/x-placeholder"></script>

The alternative is programmatically render the template inside a variable and process that, which is surely a better way of doing this, but I just wonder how the #each binding works internally as I thought the metamorph was doing that.

  • 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-10T04:22:11+00:00Added an answer on June 10, 2026 at 4:22 am

    Have you looked into using a CollectionView and calling the plugin through the didInsertElement callback?

    e.g.

    MyList = Ember.CollectionView.extend({
                 itemViewClass: 'App.ListItem',
                 didInsertElement: function(){
                      view.$().jqueryPlugin({ ... })
                 }
             })
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I start a download using PHP with this code: <? $_REQUEST['file'] = urldecode($_GET['file']); header(Content-type:
Ok here is my problem : Before i start the description, let me to
Problem Description: Occassionally when debugging, I get the following error. I'm using visual studio
I'm using upstart v1.4 to start my application server, it's called unicorn . The
Given the following text: |Description=This is the start of the ... ... <strong>description</strong> of
Description My application record sound from phone microphone. I am using android standard classes
I have 3 tables. Classes --------------- classid name description Sessions --------------- sessionid name start
This is the description of AppWidgetHost.startListening() : Start receiving onAppWidgetChanged calls for your AppWidgets
Short description of my problem: I start up Tomcat with my deployed Wicket application.
problem description: This model works fine with one user at a time. As soon

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.