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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T18:50:23+00:00 2026-06-09T18:50:23+00:00

I recently built a page based on Emberjs and twitter bootstrap. The page is

  • 0

I recently built a page based on Emberjs and twitter bootstrap. The page is dynamically built using the awesome emberjs bindings engine. I currently do have a controller from which a bounded view is rendering a list in html.

{{#each App.myArrayController}}
       {{#view App.MyItemListView contentBinding="this"}}
           <span>{{view.somethingToPrint}}</span>
       {{/view}}
{{/each}}

In that way, as you guess I’m printing N times the {{view.somethingToPrint}} array content within a span tag.

Now I’m considering rendering a list of jQuery UI slider. My question is, given they will be dynamically generated, when do I have to invoke the $(".slider").slider(); init method in order to make it “live”. Actually, what is the usual way of achieving this ?

I thought of using one the following:

  • Using jQuery’s “livequery” plugin, to transparently init any added item. The drawback is that it is slow and may not work on every browsers.
  • Embed a whole script tag at each row where I’m creating my slider, so that the script will be added too and the content inited.
  • Add an observer on my App.myArrayController which will fire a $(".slider").slider(); if any change occur.

But still I’m not convinced of those. I’m used to work with twitter’s Bootstrap where in most of the case there is no need to mess with post render script invocation (this is right what a “bootstrap” is made for).

  • 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-09T18:50:25+00:00Added an answer on June 9, 2026 at 6:50 pm

    Here is an example, in order to not leave an unanswered question 😉

    jsfiddle: http://jsfiddle.net/Sly7/bHL66/

    javascript

    App = Ember.Application.create();
    
    App.myArrayController = Ember.ArrayController.create({
      content: [
        Ember.Object.create({firstName: "Gart", lastName: "Algar"}),
        Ember.Object.create({firstName: "Wayne", lastName: "Campbell"})
      ]
    });
    
    App.MyItemListView = Ember.View.extend({
    
      didInsertElement: function(){
        this.$().hide(); 
        this.$().fadeIn(1000);        
      },
    
      somethingToPrint: function(){
        return this.get('content.firstName') + ' ' + this.get('content.lastName');        
      }.property()
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have recently built an iPad app using PhoneGap. Currently it saves the last
I have been recently reproducing the new twitter ui(sliding panes) and I have built
I have recently launched a site built on word press using a heavily edited
We recently built a web app using Prototype, making a fair amount of use
I recently discovered you can compile JScript into console apps using a built in
I have a asp.net web site built with .net 2.0 framework. we recently purchased
I recently built a website using the sammy.js framework. The site includes a portfolio
I have built a blog application using Ruby on Rails. In the application I
I have recently started playing around with sites and created a basic page. <apex:page
I have recently built a list view which shows a number of products taken

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.