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

Re : functional testing with funcunit

Go through FuncUnit website. you will get complete working of it.http://funcunit.com/Hope you get an idea of working with FuncUnit.For Web applications design and development please visit at

View Article


Render mustache template inside a mustache helper and add can.Components

I keep getting this error when I try the following:Error : Uncaught TypeError: Cannot convert object to primitive valueIn my main template I loop through my content items and depending on the type it...

View Article


Re : problem using {{else}}

Thanks for pointing it out. This is does look like a bug since it is documented in Mustache, too

View Article

Re : Canjs View Registration

I you could make a Fiddle with jQuery template that registers it and tries to render we can at least see what the error is.

View Article

method/event after the final rendering of the view for the attachment of...

Hi,i'm working since some days in canJS and it's working so far so good, but currently i have a problem...I would like to use bootstrap.js together with can.js. Now i would like to attach the tooltips...

View Article


Re : method/event after the final rendering of the view for the attachment of...

The CanJS documentation has an example that render a tooltip with jqui maybe the same thing could be done with bootstrap.Here is an example with bootstrapMohamed Cherif BOUCHELAGHEM

View Article

delegate does not catch first change

Hello,I am using the can.Map.delegate plugin:  var T = can.Map.extend({  });  var t = new T();  t.bind('change', function(ev, attr, how, newVal, oldVal) {    console.log('Something on t changed',...

View Article

Re : method/event after the final rendering of the view for the attachment of...

Thank you, but i still don't get it working the tooltips with the rendering after an ajax call... :-(Could you show me a fast example how i can attach the tooltip (or a jqui progressbar widget or sth....

View Article


Re : Render mustache template inside a mustache helper and add can.Components

Put your example in a fiddle, e.g. this one http://jsfiddle.net/qYdwR/ - it will be easier for people to help.

View Article


Bug in can.route.map / can.map.define?

set(val) method in can.map.define invoked twice on initial page load, first time with proper val, and second with [""]Fortunately there is already an example, in docs :)Try to load...

View Article

Re : Bug in can.route.map / can.map.define?

The reason locationIds is always empty is because this particular example makes a new findAll to load locations each page load:appState.attr('locations', new Locations.List({}))And each location has no...

View Article

Listen to image load error in controller

Hi,I have a Can Controller that renders some stash templates and inserts into the DOM.The template contains images and I want to listen to events for when those images fail to load.I tried this but i...

View Article

Re : Listen to image load error in controller

Have you tried first with $('img').bind('error', function() {...}) ? I don't think the error event propagates, so you have to bind directly.

View Article


Re : Listen to image load error in controller

cool. yeah that works!

View Article

Contacts Example Errors

I'm tring to run the Contacts Example https://github.com/bitovi/contacts, I cloned the repository and I got the following errors:GET...

View Article


Re : A new steal is on its way

Contacts App eaxmple is broken, stealconfig doesn't work as expected. Also switching to steal-legacy there are still several error with less compiler and contacts/less/mixins.less syntax. I opened a...

View Article

Stache custom helper that can be called with or without block

Hi,In the helper function of can.stache.registerHelper, how do I know if the helper is being called with a block or without a block?So, if I call the 'myHelper' helper like...

View Article


Strange live-binding behavior with input elements

When using a template of the form<input type="text" <% if (obj.attr("val")) { %> value="<%=obj.attr("val")%>" <%}%>>or the equivalent in Stache:<input type="text"...

View Article

Re : Strange live-binding behavior with input elements

IIUC, EJS templates are being deprecated, I had moved to Mustache templates to fix those __!!__ placeholders. For your code sample, you want to use <input type="text" can-value="obj.val"> to...

View Article

Re : Strange live-binding behavior with input elements

EJS is supposed to continue to be supported through 3.0, and it would be an enormous hassle to translate all my EJS templates to Mustache, so I'd like to avoid that if possible.

View Article
Browsing all 3491 articles
Browse latest View live