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

Re : View/Controller Combo Loopback Problem

. . . because "change" does not trigger as required."change" would be appropriate for "vcCombo" inputs that do not need to be shown elsewhere while typing. '#vcCombo input' triggers properly, but has...

View Article


Re : View/Controller Combo Loopback Problem

Then for now, I would not  use live binding for that case, but add attribute change handler that will update input value if not focused, something like that:http://jsfiddle.net/CGPfA/69/BTW:if you use...

View Article


Re : View/Controller Combo Loopback Problem

Thanks Alex,the ":focus" is indeed another workaround for the same situation.I hope to find the time to run a performance comparison and go for whatever is faster.The "focus" workaround is a little in...

View Article

CanJS and Memory Leaks

I recently re-read Brian's awesome blog post  "Avoid The Zombie Apocalypse", and I have some questions pertaining to the following closing statement:It is almost impossible to create a leaking app with...

View Article

Re : CanJS and Memory Leaks

can you start reducing your code until it no longer leaks?What line causes the leak?

View Article


Re : CanJS and Memory Leaks

We should also maybe have made it clear that CanJS doesn't prevent an active control, one currently on an element w/i the document from leaking.  I could easily enough add millions of items to a list...

View Article

Re : can I and how can I use php frameworkMVC and javascriptMVC together

1) Generally with JMVC you are building single page applications (though you may have several pages for complex app with different layouts and share loaded code between)2) with JMVC you will render all...

View Article

Multi page application

Is it possible to create a multiple page application using JavaScriptMVC. If yes how can we do the navigation's between the controller? Whether canjs or route is mandatory for navigating a page.In the...

View Article


Just a thank you for CanJS

Guys thank you for creating such a great framework that has made my life that much better ;)Ive been making it bend over backwards and doing somersaults on desktop and tablet and it doesn't even...

View Article


Re : bug in ejs with html table ?

As a quick fix, if you wrap the entire if/else in its own <div> (or any other tag) then it binds correctly.I'm not sure if this is 100% correct, but for me it helps to think of each ejs block as...

View Article

Re : CanJS and Memory Leaks

Justin, I agree that the statement should be updated to "CanJS makes it impossible to leak event handlers from discarded controls."That line of code is actually supposed to be commented out/removed. It...

View Article

Re : CanJS and Memory Leaks

First, you should help yourself. Start by bisecting your code. Remove some of it and check if it still leaks. If it does remove more. If not add some back in. Once you have a small set of code, we can...

View Article

Re : CanJS and Memory Leaks

I agree with the methodology of removing code until it doesn't leak, but I thought that was what I had done.Also, I thought the fiddle was pretty simple. All I am doing is calling findAll, populating a...

View Article


Re : CanJS and Memory Leaks

Remove the model, remove using Ben alman's plugin. Sent from my iPhoneOn Apr 1, 2013, at 6:21 PM, JavaScriptMVC Forum <noreply@zohodiscussions.com> wrote:

View Article

Re : bug in ejs with html table ?

Thanks for this workaround, I put the whole table in another view and this works too. Let's see if it'll be fixed in a future release.

View Article


Re : CanJS and Memory Leaks

You can separate this code into a few distinct chunks to figure out what is causing the leak. I recommend making the following actions trigger-able via a simple button click so you can take an initial...

View Article

can.view Deferred for Sub-Template render

Populating the options for a <select> element with a sub-template like this:<%= function( el ) { jQuery( el ).html( can.view( 'ofct', { el: el, e: e, f: f } ) ) } %>works fine.But trying to...

View Article


Re : can.view Deferred for Sub-Template render

I've been thinking for a while that it would make sense for can.view to always return a Deferred (especially if jQuery 2.0 gets rid of synchronous loading which is what can.view currently does...

View Article

Re : CanJS and Memory Leaks

Curtis,Sounds like a plan and I am on it. But when you say "doTimeout with a noop that runs a bunch of times", what runs a bunch of time? The noop or doTimeout? I'm assuming the noop.And by setup live...

View Article

Approaches for storing and syncing local (offline) data

I know Bitovi has experience building mobile apps using CanJS, probably there you store some data for using app offline, could share experience what approaches and techniques you use to store offline...

View Article
Browsing all 3491 articles
Browse latest View live