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

Re : Pretty urls

hi thanks for the prompt reply. Sorry for asking stupid qn. url and data.attr takes in link 'foo' bar? thanks

View Article


Re : Pretty urls

There are so many ways you can do this. The example I posted would create a link, that if clicked, would effectively do can.route.attr('foo', data.attr('foo')). Maybe that's overkill, and it makes more...

View Article


Re : Pretty urls

Ok I will try to figure this out. I wish that there are decent tutorials that explain a bit more so I can pick up bits by bits. Let's see if I can get it working.

View Article

Re : Pretty urls

@Josephine did you read http://bitovi.com/blog/2012/05/hashchange-routing-can-route-1.html and http://bitovi.com/blog/2012/05/hashchange-routing-can-route-2.html

View Article

Re : Pretty urls

@retro, yes I did but I am lost in that. But never mind I will give it a try and if I cannot get it working, I will get back here :)

View Article


can-boilerplate -- whatcha think?

"Get a head start on your CanJS project."more info at:https://github.com/stevenvachon/can-boilerplate

View Article

Build Error

I get this error when I try to build using the JSMVC 3.3failed to open file  file:/uibproto/loadcontainers   JavaException: java.io.FileNotFoundException: /uibproto/loadcontainers (No such file or...

View Article

Confused on AMD support

Hi,I just started using can.js. So far so good. I really do like the framework. To me it is like the best parts of backbone and knockout.I am not one to ask for help usually but I am perplexed with tho...

View Article


Image may be NSFW.
Clik here to view.

Re : Confused on AMD support

AMD support is definitely alive and well. If you download the full release of canjs, then there should be an 'amd' directory which has RequireJS-ready modules for everything. I'm not sure if there's...

View Article


Re : Confused on AMD support

Hi,Thanks for the quick response. I found it. It works just fine. I did not expect to have to go to the github to find the release. The fact that there is a download page on the main can.js website...

View Article

can.Model "update" sends all instance attributes to server.

Hi Justin,I am making a PUT request using can.Model functionality. When PUT request is sent to server it sends all the attributes along with the changed attribute. -----code---        var Test =...

View Article

Re : Confused on AMD support

Sorry, I think I wrote that out ambiguously -- by "full release", I meant the zipped download on the front page of canjs.com (which, incidentally, will give you the same zipped archive that you can...

View Article

Calling splice(-1) on empty can.List object fires weird change event

Hi all,I noticed that a weird change event gets fired when calling splice(-1) on an empty can.ListThe change event is a 'remove' event on '-1' and has newVal being undefined and oldVal being...

View Article


Re : can.Model "update" sends all instance attributes to server.

It will always send all model data which I think is the correct behaviour (just sending the diff would probably be a PATCH but CanJS models don't support that at the moment anyway).

View Article

Re : can.Model "update" sends all instance attributes to server.

You could use the backup plugin and overwrite .save() to make it only send changes.

View Article


Re : Best practice for using steal with bower?

where do you put stealconfig file? in bower_components folder? For me it seems strange.

View Article

How to use sourcemaps with the minified production.js ?

As I understand that production.js uses google closure for minification, is it possible to add the script for the source maps as well during the build?

View Article


Re : can-boilerplate -- your thoughts?

Any feedback for improvements?

View Article

Re : Best practice for passing references to a can.Component instance

@justinmeyer,Wouldn't having a function on a component's scope that can be called by other components result in a coupling of components?Isn't this something we want to avoid?

View Article

Re : Best way to integrate 3rd Party jquery Plugins

To avoid memory leaks just make sure you overwrite your control's destroy (as you've done above) and clean up the 3rd party plugins.

View Article
Browsing all 3491 articles
Browse latest View live