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

canjs routes and delegate, listen when property has a particular value?

I use canJs with plugin can.Map.delegate and i would like this, but it doesn't work, "ok" is not displaying in console.Could you help me ?    $(function() {      var Routing = can.Control({...

View Article


Re : canjs routes and delegate, listen when property has a particular value?

Not really sure why it's not working as you would expect.  I created a fiddle and verified things are not working as expected.  Hopefully a Bitovi guru can chime...

View Article


Re : How to check if a controller is initialized ?

There are two ways to do this:Keep track of whether the controller has been instantiated using a property on your "application" controller... not really the best b/c now your controller logic depends...

View Article

Re : can.compute in a can.List

It's not a bug.  If you want "compute-able" properties on an object, you can't use the prototype (like Justin said), but you can define instance properties like...

View Article

Re : can.compute in a can.List

I don't need it. This just happened to come up in the meetup.

View Article


Re : can.view(template, data) only return a Deferred? Docs say fragment is...

The docs aren't clear about this, but this has been a feature since CanJS 1.x that if your view data is a deferred, you will get a deferred back.  Example from my Chrome console:$("<script...

View Article

Live binding script tag content.

We were wrangling with using Mustache and other trickery to set up content for Bootstrap tooltips for ggrc-core, and came across a problem where we wanted to put some content inside of an <a> tag...

View Article

Re : can.Component inserted event fires twice on the same element

Are people still seeing this issue?

View Article


Re : can.Component inserted event fires twice on the same element

I think it had been fixed. (I submitted tests for it)

View Article


Re : can.compute in a can.List

It's not a bug. If authors say so, but can.Map supports it, and can.List is inherits from can.Map that why it seemed (seems?) strange that is not supported on can.List.

View Article

Moving DOM Elements Containing Components

It seems that if you try to move a DOM element that contains a can.Component, the Component's inserted event is called again when it is moved.Is there a better (correct) way to do this without...

View Article

Stealing the ejs templates is coming from the cache but navigation is not...

Hello,I want my ejs templates to come from cache after loading for the first time. Can anyone tell me how to do that?? i am already stealing the ejs templates like...

View Article

this._super causes the error: Maximum call stack size exceeded

The applications works fine, but after the build, RangeErrror is thrown: "Maximum call stack size exceeded" on one Construct initialization. The _super is pointing not to the parent but to the self:...

View Article


Re : can.view(template, data) only return a Deferred? Docs say fragment is...

Yeah, I've also now found that I can pass a new instance of someModel.List() to the view and that returns my findAll data while rendering the view to a docFrag.  So yeah, just wasn't clear at first....

View Article

Re : Anyone using something other than jQuery and Zepto?

Interoperability is a great selling point, but what is the price of a bullet? To me, CanJS' strength over competing libraries is the beauty of its syntax.

View Article


SCRIPT5009: 'DocumentFragment' is undefined

I tested javascriptmvc v3.3 using IE document mode 8 and got this error: SCRIPT5009: 'DocumentFragment' is undefined.In www.javascriptmvc.com page it is written, that: " It supports every browser that...

View Article

Re : SCRIPT5009: 'DocumentFragment' is undefined

Our 800 or so tests pass in IE8.  Also, many of our apps work in IE8.  Which browser are you putting in IE8 mode?  (Note that we don't support different modes, only the browser)Can you send the code...

View Article


can.route without hash for pretty routes

Is it possible to handle routes without hash, i.e. pretty routes. Instead of domain.com#!profile/John just domain.com/profile/John. Url rewriting can be done on server side but I wonder how to handle...

View Article

Re : can.batch.start callback called too early in can.Map.extend() init?

Here is my official request for the "removing" event:https://github.com/bitovi/canjs/issues/685

View Article

Re : SCRIPT5009: 'DocumentFragment' is undefined

Thanks for fast response.I'm using IE 11 , need to test my application on IE8, IE9. Some times requirements are that the application must support even IE6 :(I testing application on IE browsers using...

View Article
Browsing all 3491 articles
Browse latest View live