These are chat archives for canjs/canjs

2nd
Feb 2016
Mohamed Cherif Bouchelaghem
@cherifGsoul
Feb 02 2016 13:27
@whitecolor cool :+1:
Alex
@whitecolor
Feb 02 2016 13:28
use it)
Mohamed Cherif Bouchelaghem
@cherifGsoul
Feb 02 2016 13:29
haha like you know I have to control my body mass :D
Alex
@whitecolor
Feb 02 2016 13:30
))
can be used with donejs embeded live reload i believe
Mohamed Cherif Bouchelaghem
@cherifGsoul
Feb 02 2016 13:30
Ok I will give it a try
Jeroen Cornelissen
@jeroencornelissen
Feb 02 2016 14:24
How do you do live binding on a radiobutton in 2.3?
The docs say can-value is deprecated but I still see this example in the docs
<p>Attending? 
  <input type='radio' can-value='attending' value='yes'/> Yes,
  <input type='radio' can-value='attending' value='no'/> No,
  <input type='radio' can-value='attending' value='maybe'/> Maybe
</p>
Kevin Phillips
@phillipskevin
Feb 02 2016 15:33
can-value is still the best way
there’s an issue open to show better examples for form binding
Gregg Roemhildt
@roemhildtg
Feb 02 2016 15:34
Is can-value still the best way for select dropdowns as well?
Kevin Phillips
@phillipskevin
Feb 02 2016 15:39
with <select>s I’ve just used the {$value} bindings
{$value} or {($value)}
I only had to use can-value with radio buttons and checkboxes
Gregg Roemhildt
@roemhildtg
Feb 02 2016 15:43
Ok, good to know.
Jeroen Cornelissen
@jeroencornelissen
Feb 02 2016 15:46
thx
Kevin Phillips
@phillipskevin
Feb 02 2016 17:46
anyone know why a can.Model would serialize rootNode like this when doing a save()? I exptected a normal JSON object.
{
    "guideId": "20",
    "title": “My Template",
    "active": "true",
    "rootNode[tag]": "a2j-template",
    "rootNode[id]": "cik5okjo400023j9wgv33oqy3",
    "rootNode[children][0][tag]": "a2j-repeat-loop",
    "rootNode[children][0][state][loopType]": "counter”,
…
}
Justin Meyer
@justinbmeyer
Feb 02 2016 17:53
@phillipskevin I doubt can.Model is doing that
it's probably jQuery
or a jQuery filter
Kevin Phillips
@phillipskevin
Feb 02 2016 17:54
hmm, ok
Justin Meyer
@justinbmeyer
Feb 02 2016 17:54
if you call .serialize() ... is that what can.Model gives you back?
Kevin Phillips
@phillipskevin
Feb 02 2016 17:54
no
Justin Meyer
@justinbmeyer
Feb 02 2016 17:54
so it's something happening once that goes to $.ajax
my guess is someone wrote a preFilter that doesn't handle recursive objects
Kevin Phillips
@phillipskevin
Feb 02 2016 17:55
ok, thanks
I’ll take a look
Justin Meyer
@justinbmeyer
Feb 02 2016 19:05
Article related to CanJS's observable roadmap: http://blog.bitovi.com/long-live-es6-proxies/
Bryan Clover
@bclover
Feb 02 2016 22:04
When I click on the Chapter 0 link at the bottom of this page of the Getting Started Tutorial I get a 404 Not Found error. http://canjs.com/guides/Tutorial.html#observables
Bryan Clover
@bclover
Feb 02 2016 22:21
Likewise, clicking the link at the top of the Setup page fails to download the following zip file of code: http://canjs.com/guides/examples/PlaceMyOrder/ch-0_canjs-getting-started.zip
Bryan Clover
@bclover
Feb 02 2016 22:26
Obviously, without that code it makes going thru the guide a bit difficult.
Justin Meyer
@justinbmeyer
Feb 02 2016 23:13
@bclover created an issue: canjs/canjs#2231