Fixtures in CanJS & JSMVC
Hi,I'm working with the new version of JSMVC that uses CanJS, and have a question about Models and fixtures.I have a model as follows :$.Model.extend('Travel',{ findAll : "GET...
View ArticleWhy can.Observe.prototype.each() argument order is different from jQuery.each()?
Why did you chose a different argument order - it can be really confusing.Even the documentation You provide ( http://donejs.com/docs.html#!can.Observe.prototype.each ) is ambiguous in this matter:The...
View ArticleRe : Why can.Observe.prototype.each() argument order is different from...
jQuery's order is wrong. Every other library, and JavaScript's forEach do it the other way. Sent from my iPhoneOn Jan 9, 2013, at 5:06 AM, JavaScriptMVC Forum <noreply@zohodiscussions.com> wrote:
View ArticleRe : [1.1.1] Resetting a form changes input values to "__!!__"
Same thing happening for me with Mustache live binding at 1.1.3 AMD release from canj.us site.I'm updating a facebook avatar image id, before it's changing to proper id it's showing me 404 response...
View ArticleRe : Localization
@Gilmesh: Did you find any suitable and easy way to distribute the i18n files throughout the app (widget) folder structure?? I'm using jQuery i18n as well and I'm currently looking into how to organize...
View ArticleRe : [1.1.1] Resetting a form changes input values to "__!!__"
I have a fix attached to to the issue. It will be merged in soon and included in the 1.1.4 release.
View ArticleRe : Fixtures in CanJS & JSMVC
If you look at the docs for CanJS here, you'll see how to use fixtures now.In your example, you should include the HTTP verb in your fixture definition so the POST Ajax call does not use the fixture....
View ArticleCan Router at Multiple Page Applications
Hello,All of the CanJS examples i've seen was routing with hashchanges (which i can understand it's the main purpose mostly).I was wondering when you're developing multiple page applications (which I'm...
View ArticleIE Model Caching
What are people using to bust IE's broken caching? When IE makes an AJAX GET request, it returns from its own cache faking a 304 server return status. This is problematic if you have multiple writers...
View ArticleRe : Can Router at Multiple Page Applications
Backbone's Router will use HTML5 pushState if the browser supports it (and the developer opts-in to it). If you visited the site in an older IE browser, you would see a hash present. can.route has...
View ArticleRe : Can Router at Multiple Page Applications
I didn't notice the hash fallback for IE & pushState.I just saw the plugin's topic after I wrote this question, it's similiar to what i ask indeed. Thank you for the response.
View ArticleLive binding to an array inside an object
I'm trying to create live binding to an array inside an object.var obj = { name : "Steve Doe", age : 35, pets : [cat, dog, fish, rabbit ]}I have live binding working great for name and...
View ArticleRe : Fixtures in CanJS & JSMVC
HiThanks for your suggestion! I had not tried the fixture.make option, and now this works like a charm. I have one question though.So this is my code :findAll : "GET /travel_deals" var store =...
View Article"Download" customized library not working on the canjs.us website
I unchecked the EJS box, checked the Mustache one, clicked the "Download" button, saw a message "The file is being prepared" or something close to that, heroku seems to be accessed and then the...
View ArticleRe : "Download" customized library not working on the canjs.us website
Looks like the download builder crashed. But it is running again now.
View ArticleRe : "Download" customized library not working on the canjs.us website
Yep, thanks. I downloaded my custom can ;)
View ArticleRe : [1.1.1] Resetting a form changes input values to "__!!__"
I applied your patch to 1.1.3 and am still getting _!!_ when my demo app initialises.See console.log when you go here - http://think-a-doo.net/Cellar/GET http://think-a-doo.net/Cellar/__!!__ 404 (Not...
View ArticleRe : [1.1.1] Resetting a form changes input values to "__!!__"
I don't think that is the same issue. This looks more as if you are live binding to an image src. We don't have a fix for that yet. The workaround at the moment is this for EJS:<img <%=...
View ArticleRe : Live binding to an array inside an object
Arjens solution will probably work best. You can't live bind to a primitive value though. can.each will, however, bind to the arrays length. So whenever you remove or add an element this section will...
View ArticleRe : AppSwitcher Control
@Mohamed, I have used the controller/action architecture in a full fledged enterprise application and it is very elegant and pleasant to maintain/extend. The trick is to organize your logic in several...
View Article