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

Re : Nested Models With Associations Bug?

(Edit: Oops, I take too long to write. I wrote this out before seeing your second reply above.)--Oh -- I completely misread your original post. Sorry about that; totally my fault.I think you're...

View Article



Re : Nested Models With Associations Bug?

The problem I am running into is that when I try to destroy a Player, it goes into an infinite loop and I get a "maximum call stack exceeded" error as it crashes the browser.

View Article

Re : Nested Models With Associations Bug?

In the my fiddle. Enter the following in the console:can.when(players[2].destroy()).then(function(g) { console.dir(g) } )http://jsfiddle.net/thecountofzero/qYdwR/767/

View Article

Re : Nested Models With Associations Bug?

Removing the "team" attribute from the player instance seems to fix the infinite loop (after adding a fixture for "DELETE /players/{id}"), but I suspect that's not the right...

View Article

Is there a way to have can.view call a callback function when an EJS template...

Hello All,I've been trying to find a way to this for a while now. I know that it is possible to have callbacks for can.view when an EJS template has been "processed" but I'm trying to find a way to...

View Article


Re : Is there a way to have can.view call a callback function when an EJS...

Views are rendered synchronously. I think what you are trying to accomplish is beyond can.js competence. And i'm afraid PageVisibility API is about another problem.

View Article

An simple JS mobile web application written with CanJS

Hello,I am a beginner and trying hard of getting into CanJS. But not getting hang of it.Being a very powerful library (CanJs) I didnt find much resources for it. Can some one post a full fledged mobile...

View Article

Re : Is there a way to have can.view call a callback function when an EJS...

Here is a structure that works for my app in Google Chrome.I did not check it in other browsers.function initDlg( ){ // listen to DOMNodeInserted to finalize the dialog after it is inserted into the...

View Article


Re : Is there a way to have can.view call a callback function when an EJS...

Thank you all for the responses. I will give the DOMNodeInserted event a try and see if it works. I'll report back with results.EDIT:I just tried it and it seems to have worked! Although I'm not 100%...

View Article


Re : Is there a way to have can.view call a callback function when an EJS...

There is not, but I use $(..).append(can.view(...)).resize()and have my widgets listening to jQuery++'s resize.A resize event handler typically does what you want in the case that something was just...

View Article

Re : An simple JS mobile web application written with CanJS

http://www.mindjet.com/products/mobile/ was written in CanJS and phonegap.

View Article

Re : An simple JS mobile web application written with CanJS

Seems its an paid application.But I want some open source application for study.

View Article

Re : More CanJS Examples

Hi,Any updates on the same topic? Has any one created an full fledged app it would be a great learning point since few of developers like me go via example path?

View Article


Re : An simple JS mobile web application written with CanJS

It is closed source.  I know of no large open source mobile app in CanJS.  Most people who build "big" with CanJS don't end up sharing the code ... they are trying to make a profit from it.

View Article

Re : An simple JS mobile web application written with CanJS

It is not specifically mobile but I still think that the TodoMVC example is a good starting point. For mobile you would probably use Zepto instead of jQuery and possibly some of the HTML 5 device APIs...

View Article


JavaScriptMVC to CanJS EJS differences

I am looking to move my application from JavaScriptMVC to CanJS and am noticing some issues with EJS templates I had written previously that worked in JMVC but not in CanJS.  Are there any specific...

View Article

Passing Args to Destroy

Is there a way to pass arguments to the destroy function of a model?I see in makeRequest it gets rid of all properties other than the id before making the destroy request.I'd like to pass another...

View Article


CanJS with JSONP service

We have a jsonp service that is basically just our normal REST service but wrapped in the jQuery callback function and with some simple back-end stuff with 'X-HTTP-Method-Override' for POST, PUT, and...

View Article

With pre-compiling EJS and templates, can we get rid of parsing code?

I came across daffl's can-compile for grunt today and I'm wondering something about templates in general: when one pre-compiles templates for a production build, where does the parsing code go now that...

View Article

Re : With pre-compiling EJS and templates, can we get rid of parsing code?

I don't think it would be removed because the pre-compiled views are still using can.EJS and can.Mustache (see the can-compile tests). EJS and Mustache depend on the scanner code (even though it isn't...

View Article
Browsing all 3491 articles
Browse latest View live




Latest Images