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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T15:35:08+00:00 2026-06-17T15:35:08+00:00

Simplest way to explain what is happening is by example: Before: <div id=top> <div>Row

  • 0

Simplest way to explain what is happening is by example:

Before:

<div id="top">
    <div>Row 1 - Horse</div>
    <div>Row 2 - Pony</div>
</div>

Now I call handlebars to overwrite $(‘#top’) with:

<div>Row 1 - Cat</div>

After:

<div id="top">
    <div>Row 1 - Cat</div>
</div>

BUT
This is what it looks like:

Row 1 - Cat
Row 2 - Pony

Not until i manually highlight Row 2 – Pony or press CTRL+A does the text dissapear. It seems to be some sort of redraw problem within JS and I can’t find anyeone else that has had this problem before.

EDIT code sample

JS

var source   = $("#top_html").html();
var template = Handlebars.compile(source);
$('#top').html(template({
    'load_top':'1',
    data_obj:return_obj
})); 

Handlebars

{{#if load_top}}        
    {{#foreach data_obj}}
        <div>{{name}}</div>
    {{/foreach}}         
{{/if}}
  • 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-17T15:35:09+00:00Added an answer on June 17, 2026 at 3:35 pm

    Updating Chrome to 24.0.1312.56m seemed to have fixed the problem.

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

Sidebar

Related Questions

What is the simplest way to call a program from with a piece of
What is the simplest way to remove the header row from a flat file
Please explain how recursion works, in the simplest way you can.
Very noob question, In asp.net can you explain in the simplest possible way what
What is the simplest way to create a line box around 2 buttons <div
Here's the simplest way to explain this. Here's what I'm using: re.split('\W', 'foo/bar spam\neggs')
Pretty much as the title says, that was the simplest way I could explain
To explain my problem in the simplest way, I'll first show you a Groovy
The simplest way I can explain what I am trying to accomplish if the
The simplest way to deal with python package installations, so far, to me, has

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.