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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T10:22:56+00:00 2026-06-18T10:22:56+00:00

I have a question about knockout combined with jQuery. If I only use Knockout,

  • 0

I have a question about knockout combined with jQuery. If I only use Knockout, the program works fine, but as soon as I bind in jQuery it doesn’t work anymore. The second page isn’t shown.

This is how I bind all the needed things:

<script type="text/javascript" src="../../Scripts/upshot.min.js"></script>
<script type="text/javascript" src="../../Scripts/Upshot_Timeworx.js"></script>
<script type="text/javascript" src="../../Scripts/knockout-2.2.0.js"></script>
<script src="../../Scripts/jquery.mobile-1.2.0.js" type="text/javascript"></script>


var masterViewModel = {

        loginVM: ko.observable(),
        startVM: ko.observable(),
        projectStartVM: ko.observable()

    };

    var LoginVM = function () {
        //Some Code
    };

    var StartVM = function () {
         //Some Code
    };

    var ProjectStartVM = function () {
    //Some Code
    //That's how I open the next "Page"
    masterViewModel.loginVM(new LoginVM());
    ko.applyBindings(masterViewModel);

LoginVM:

var LoginVM = function () {
            var self = this;
            self.mandant = ko.observable();
            self.user = ko.observable();
            self.password = ko.observable();
            self.showDetails = function () {

                if ((self.user() == "Gregor") && (self.password() == "gregrech")) {
                    masterViewModel.loginVM(null);
                    masterViewModel.startVM(new StartVM());
                }
                else {
                    alert("Username oder Passwort falsch");
                }

            };
        };

Anyone knows what my problem is?

  • 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-18T10:22:57+00:00Added an answer on June 18, 2026 at 10:22 am

    This appears to work, not sure what you were actually asking for. It binds a username/password box with a click to proceed that functions.

    User:<input type="text" data-bind="value: user"/>
    Password:<input type="password" data-bind="value: password"/>
    <input type="button" data-bind="click: showDetails" value="Show"/>
    

    http://jsfiddle.net/Maslow/mmMcs/

    var LoginVM = function () {
      var self = this;
      self.mandant = ko.observable();
      self.user = ko.observable();
      self.password = ko.observable();
    
      self.showDetails = function () {
    
        if ((self.user() == "Gregor") && (self.password() == "gregrech")) {
          masterViewModel.loginVM(null);
          masterViewModel.startVM(new StartVM());
        } else {
          alert("Username oder Passwort falsch");
        }
    
      };
    };
    var masterViewModel = {
    
      loginVM: ko.observable(),
      startVM: ko.observable(),
      projectStartVM: ko.observable()
    
    };
    
    
    var StartVM = function () {
      alert('success');
    };
    
    ko.applyBindings(new LoginVM());
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Question about JS Knockout library - I have three inputs, all data-Bind-ed to the
I have a question about how GC works in Java. Consider the following code:
1.i have 2 question about knockout on asp.net. server side method: <WebMethod> Public Shared
I'm learning asp.net. I have question about example buttons I can use two types
Today I have question about Eclipse . I use this IDE very long and
I am new to ios programing. I have question about the GCD program. 01
Have a question about linux bash. I want to start a program and then
I have a question about jQuery + Razor.. I want to build a javascript
I have a question about Ruby arrays but it's kind of hard to describe
I have question about the d3 javascript libarary. I want to use the azimuthal

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.