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 ArticleRender 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 ArticleRe : problem using {{else}}
Thanks for pointing it out. This is does look like a bug since it is documented in Mustache, too
View ArticleRe : 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 Articlemethod/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 ArticleRe : 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 Articledelegate 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 ArticleRe : 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 ArticleRe : 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 ArticleBug 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 ArticleRe : 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 ArticleListen 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 ArticleRe : 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 ArticleContacts 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 ArticleRe : 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 ArticleStache 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 ArticleStrange 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 ArticleRe : 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 ArticleRe : 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