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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T20:21:29+00:00 2026-06-10T20:21:29+00:00

With Asp.net MVC, I have two views: First view: <div data-role=listview data-theme=g id=subcategorieslistview> <ul

  • 0

With Asp.net MVC, I have two views:

First view:

<div data-role="listview" data-theme="g" id="subcategorieslistview">
<ul data-bind="template: { name: 'subcategory-template', foreach: subcategories }" id="subcategories">
    <script type="text/html" id="subcategory-template">
     <li data-role="button" data-icon="arrow-r" data-iconpos="right">
       <a data-bind="attr : { title : name, categoryid : categoryId, lazyloaddescriptor : lazyLoadDescriptor}"><label data-bind="text: name"></label></a>
     </li>
   </script>        
</ul>

<script type="text/javascript">
   $(document).one("pageinit", function () {
      <!-- Ajax load of view model --->
</script>

Second view:

<div data-role="listview" data-theme="g" id="archivecontainerslistview">
<ul data-bind="template: { name: 'archivecontainers-template', foreach: archivecontainers }" id="archivecontainers">
    <script type="text/html" id="archivecontainers-template">
        <li data-role="button" data-icon="arrow-r" data-iconpos="right">
            <span data-bind="text: name"></span>
            <span data-bind="text: synopsis" class="ui-li-count"></span>
        </li>
    </script>        
</ul>

<script type="text/javascript">
   $(document).one("pageinit", function () {
      <!-- Ajax load of view model --->
</script>

When I go to the first view, the templating works fine.
I then move to the second view and the templating once again is working as expected.

However, when I hit the back button to go back to the first view, I get an error in knockout.js:

Uncaught Error: Unable to parse bindings.
Message: ReferenceError: synopsis is not defined;

The field synopsis is on the second view and by examining the DOM I see both pages loaded where as I expected the second page to be removed from the DOM (not sure if the error is preventing the second page from being removed from the DOM).

It seems that because the second page is in the DOM when the first page is activated the binding seems to be kicked off in the second page even though the second page is not shown. Not sure if this is correct.

Is there anything in Jquery mobile or KnockOut to somehow remove the binding from the second page so that I can avoid this error?

  • 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-10T20:21:31+00:00Added an answer on June 10, 2026 at 8:21 pm

    Is there anything in Jquery mobile or KnockOut to somehow remove the binding from the second page so that I can avoid this error?

    Yes.

    Have you tried calling Knockout’s cleanNode() method to remove the binding from the second page?

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

Sidebar

Related Questions

In the asp.net mvc 3 application I have two views which have the same
I'm using ASP.NET MVC 3, with Razor views. I have two action methods (Get
I have two ASP.NET MVC web applications. One of them logs unhandled exceptions to
I have two instances of an Address.ascx control in an ASP.NET MVC page. <h1>Shipping
I have two .ascx files in the same folder in an ASP.NET MVC project.
I have two projects.One project is build in MVC asp.net and the other project
I have a Solution with several projects in it, including two asp.net mvc projects
I have a jqGrid on an ASP.Net MVC view. I want to use to
I have an ASP.NET MVC 3 Web Application using Linq-to-SQL for my data access
I have an ASP.Net MVC view which inherits from a ViewModel. The ViewModel contains

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.