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

  • Home
  • SEARCH
  • 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 6852643
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T01:25:04+00:00 2026-05-27T01:25:04+00:00

Attempting the most basic example of Knockout.js possible on their documentation page: http://knockoutjs.com/documentation/observables.html Looks

  • 0

Attempting the most basic example of Knockout.js possible on their documentation page:
http://knockoutjs.com/documentation/observables.html

Looks like I have everything setup like the documentation is asking for, and I’m not getting any errors on the page, but the span should display the binding of “personName” – which is ‘Bob’.

However, when I run the page all that appears is “The name is”. Bob is nowhere to be found.

Here is my code:

<!DOCTYPE html>

<html>
<head>
<title>Knockout Practice</title>
<script type='text/javascript' src='javascript/jquery-1.6.4.js'></script>
<script type='text/javascript' src='javascript/jquery-tmpl.js'></script>
<script type='text/javascript' src='javascript/knockout-1.2.1.js'></script>    

<script type="text/javascript">

    var myViewModel = {
    personName: 'Bob',
    personAge: 123
    };

    ko.applyBindings(myViewModel);  
</script>

</head>

<body> 
   The name is <span data-bind="text: personName"></span>


</body> 

</html>

Is there something missing in the documentation, or am I missing something?

  • 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-27T01:25:04+00:00Added an answer on May 27, 2026 at 1:25 am

    You need to change where the script loads.

    You can either put the script block at the bottom of your HTML document, or you can put it at the top and wrap the contents in a DOM-ready handler such as jQuery’s $ function.

    Putting the script block at the end of HTML document does indeed show

    The name is Bob

    for <span data-bind="text: personName">Bob</span>

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

Sidebar

Related Questions

Attempting to use XStream's JavaBeanConverter and running into an issue. Most likely I'm missng
I am attempting to mimic the functionality of Adium and most other chat clients
Attempting to use the data series from this example no longer passes the JSONLint
I'm attempting to do the most simple of mappings with FluentNHibernate & Sql2005. Basically,
I'm attempting to implement this paper . I've have most of it down, but
I am attempting to implement a firefox extension which filters incoming HTTP responses and
I am attempting to move most of my daily working life to a terminal
I'm attempting to write a query that will return The most recent AccountDate with
I am attempting to return the data from the rows with the most recent
I have an sql statement as below attempting to retrieve the most recent entries

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.