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

Re : Mustache Template for CSS

Doesn't it work there? I think you can add <style> tag inside mustache template (like any other tag) and do what ever you like with it. You can append mustache template in <head> section if...

View Article



Re : Is it recommended use can Mustache instead of can EJS?

Mustache templates encourage much cleaner separation of concerns.

View Article

Re : Anyone using something other than jQuery and Zepto?

I think that is right decision. 

View Article

Re : Mustache Template for CSS

Thanks Alex,I did not think about putting a whole <html> document inside a template.Will check and test performance.

View Article

Re : Mustache Template for CSS

You don't need to put a whole document's <html> in template but you can just insert (append) template that contains <style> tag into document's <head>.var myStyle = 'body:...

View Article


Re : Mustache Template for CSS

I will also try to reference the whole stylesheet with an id.<style type="text/css" id="skin1">

View Article

Integration of CanJS with JQuery data table plugins like DataTables

Does CanJS work with JQuery data table plugins like DataTables, JQGrid or any other data grid plugins?I saw an example of KnockoutJS being used with DataTables for automatic updates of the data table...

View Article

Re : Integration of CanJS with JQuery data table plugins like DataTables

It is not hard to implement such things with can.js in many ways such generic jquery plugins were developed because it is not trivial to make everything work smoothly using just jquery. For certain...

View Article


Re : can.Compute is called too many times

This is very likely a bug.  This shows the right behavior:http://jsfiddle.net/xKc3H/297/I'm not sure why there is a difference.

View Article


Re : can.Compute is called too many times

The intention of the code is is to translate comp value (each time it is value is changed based on chanages of attr1 and attr2 values) to some scope attribute how can I do this? 

View Article

Re : can.Compute is called too many times

Can you elaborate a bit more on what you mean. I'm not clear on what you are asking. Sent from my iPhoneOn Jan 5, 2014, at 11:12 PM, JavaScriptMVC Forum <noreply@zohodiscussions.com> wrote:

View Article

Re : Anyone using something other than jQuery and Zepto?

Are there any specific reasons to remove support for JavaScript libraries other than JQuery and Zepto? I thought this interoperability with multiple JavaScript libraries was one of the listed reasons...

View Article

Re : Confused on AMD support

A tip: If you use a package manager, for example Bower, you do not have to go around and fetch code from different download pages. For canjs you can easily do 'bower install canjs', and you will get...

View Article


Re : can.Compute is called too many times

Well I use this code:        comp: can.compute(function(){            var attr1 = this.attr('attr1'),            attr2 = this.attr('attr2')            console.log('comp attr1 attr2', attr1, attr2)...

View Article

Best way to deal with href links in a "{can.route} attribute" setup?

By listening for attribute changes instead of "route" events, regular hrefs are not automatically picked up as routes. What would be the best practice to correct this?For a link like:<a...

View Article


Re : Anyone using something other than jQuery and Zepto?

Supporting Dojo and YUI slows us down. We can have a standalone version of canjs. But, using the zepto version with dojo would be very similar in size to that. Sent from my iPhoneOn Jan 6, 2014, at...

View Article

Re : Anyone using something other than jQuery and Zepto?

@netizen obviously supporting many libraries requires more work, and if nobody (or little) actually uses it is a waste of time for authors. Nothing personal just natural selection.

View Article


Re : Best way to deal with href links in a "{can.route} attribute" setup?

they should be automatically picked up already:https://github.com/bitovi/canjs/blob/master/route/pushstate/pushstate.js#L45

View Article

Re : Best way to deal with href links in a "{can.route} attribute" setup?

Ah, now I see why it's not working for me.. https://github.com/bitovi/canjs/blob/master/route/pushstate/pushstate.js#L94 is returning {} on my link. I had this issue in my example above, which is why I...

View Article

Re : Best way to deal with href links in a "{can.route} attribute" setup?

https://github.com/bitovi/canjs/pull/644

View Article
Browsing all 3491 articles
Browse latest View live




Latest Images