Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Knockout checkbox enable dependencies
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
ivanovvva...@gmail.com  
View profile  
 More options Nov 11 2012, 5:01 pm
From: ivanovvva...@gmail.com
Date: Sun, 11 Nov 2012 14:01:50 -0800 (PST)
Local: Sun, Nov 11 2012 5:01 pm
Subject: Knockout checkbox enable dependencies

I'm trying to make checkbox enabling with dependencies.
I'd like to enable a checkbox if some of two input fields are not empty.
and it works perfectly for initializing.. here is printscreen<http://linkme.ufanet.ru/images/28643b48c85a8727e2fdda0765f9dcc4.png>.
But it doesn't work with changes, i mean that after you filling any of
empty field it doesn't enable.

Here is this question on stackoverflow<http://stackoverflow.com/questions/13335762/knockout-checkbox-enable-...> with
code listings.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Denis Kuzin  
View profile  
 More options Nov 11 2012, 5:26 pm
From: Denis Kuzin <the.de...@gmail.com>
Date: Mon, 12 Nov 2012 00:26:18 +0200
Local: Sun, Nov 11 2012 5:26 pm
Subject: Re: Knockout checkbox enable dependencies

You must or use computed observable, or subscribe to changes. Your function
not notify other model about change.

As I think:
1. You need contact class
2. In class Contact you need computed observable Is_Enabled
3. Get data from server and produce array of Contact elements
3. Do binding
4. Get fun.

2012/11/12 <ivanovvva...@gmail.com>

> I'm trying to make checkbox enabling with dependencies.
> I'd like to enable a checkbox if some of two input fields are not empty.
> and it works perfectly for initializing.. here is printscreen<http://linkme.ufanet.ru/images/28643b48c85a8727e2fdda0765f9dcc4.png>.
> But it doesn't work with changes, i mean that after you filling any of
> empty field it doesn't enable.

> Here is this question on stackoverflow<http://stackoverflow.com/questions/13335762/knockout-checkbox-enable-...> with
> code listings.

--
--
Денис Кузин
dekusworld.ru

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »