Quantcast
Channel: JavaScriptMVC Forum
Browsing all 3491 articles
Browse latest View live

Re : Correct replacing of list attribute while Model data update

asavoy As far as I concerned can.compute  on Map.prototype   is going to be removed in later versions. https://github.com/bitovi/canjs/issues/962 Besides it is no good workaround for general case. An...

View Article



Re : Correct replacing of list attribute while Model data update

Thanks for letting me know about that. As far as a workaround goes, it works for solving problems I have now, but clearly there needs to be proper solution.

View Article

Re : What is the best approach to listen to route changes

Yes, that's correct. You could also listen to `{can.route} change` which will notify you of all changes and then check if it is the q parameter. An additional thing you could do is is to map your route...

View Article

CanJS NodeJS

Does anyone use parts of the CanJS library to do server side NodeJS development?

View Article

Re : CanJS NodeJS

why?

View Article


Re : CanJS NodeJS

To use models

View Article

Re : CanJS NodeJS

We don't... Our server side (nodejs) provides a RESTful API of services. Which the client side (canjs) models use to crud data. patrick

View Article

Re : CanJS NodeJS

the steal-system-domless branch can run some parts of canjs in node.

View Article


Re : CanJS NodeJS

What is this steal-system-domless branch you speak of?

View Article


Re : CanJS NodeJS

https://github.com/bitovi/canjs/tree/system-steal-domless It's a branch of the CanJS source code. You can get an export of this branch (the current working tree minus .git folders) by clicking the...

View Article

Re : CanJS NodeJS

it has a can/util/domless/domless that runs in node.   You will need the latest steal to System.import("can/model/"). 

View Article

Re : CanJS NodeJS

or, you could use the latest steal-tools to convert CanJS from steal to CommonJS.  That might be a bit tricky though.

View Article

New StealJS

There's a new StealJS site: http://stealjs.com/ that has pretty decent documentation on how to use the new steal.   There's going to be a minor release of CanJS this week that you can be used with the...

View Article


Passing a boolean to can component

What is the correct way to pass a boolean to a can component? Please see this fiddle http://jsbin.com/gibih/1/edit What I have tried: #1 <client-list clients="{clients}" selectable="false">...

View Article

Re : Passing a boolean to can component

See fixed fiddle: http://jsbin.com/hoxilelu/2/edit Use #1 for "hard-coded" values (i.e. they don't come from the variables passed into the template). Also, need to import & use the define plugin to...

View Article


Re : New StealJS

Great stuff. I played around with https://github.com/bitovi/steal-can-example and the build works nice and fast. I noticed however, it depends on a branch version of CanJS , is that necessary?

View Article

Re : Passing a boolean to can component

@asavoy, thanks Using the define plug in works, but it surprises me that it is needed at all to do what seems like a simple thing.  Any simpler way of doing this?

View Article


What is the best way to open a a fragement of code in a new window

I am a newbie to CanJS. Currently, I need to open a window which contains one fragment of the codes. I am using window.open('fragment.html', '_blank', 'toolbar=yes, scrollbar=no, frame=true,...

View Article

Re : How to determine if a file was not loaded by steal?

@paddybasi,  I came across this when trying to do the same in JSMVC 3.3. The only issue I have here is that I can't see how to assign variables to the argument that is provided to the success function...

View Article

Re : Passing a boolean to can component

You could remove the define plugin and the define: section, but then the attribute value for the case `is-selectable="false"` will be the string "false" which is not actually falsey. You could make it...

View Article
Browsing all 3491 articles
Browse latest View live




Latest Images