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

Re : Build issue

Hello!I've got the same issue. Could you tell which exact file/line did you patch?Thanks,Igor

View Article


CanJS + list of tbody gives unexpected nesting

Do this with something like <ol> and <li> and it seems to work fine. Try it with a <table> and <tbody> (so you get multiple tbody sections) and you end up with a structure like:...

View Article


Re : CanJS + list of tbody gives unexpected nesting

Whenever you create HTML using EJS, the string of HTML has to be converted into an document fragment. Deep inside jQuery, this is done (eventually) using the innerHTML function. innerHTML will...

View Article

Re : CanJS + list of tbody gives unexpected nesting

I'll have a play later today and try and boil it down to a short example.

View Article

Re : CanJS + list of tbody gives unexpected nesting

Looks like its doing exactly what it should be. Why is your loop outside the tbody instead of inside it?Sent from my iPhoneOn Jan 14, 2013, at 7:56 AM, JavaScriptMVC Forum...

View Article


Re : CanJS + list of tbody gives unexpected nesting

No - it's not doing what it should, it's nesting my <tbody> tags (one per list item) inside one of its own. Curtis' reply seems to explain the why of it.I've got the tbody tags inside the list...

View Article

Image may be NSFW.
Clik here to view.

documentjs 3.2.3 issues: "ReferenceError: _gaq is not defined" when loading...

Hi there, I downloaded the latest documentjs from http://javascriptmvc.com/builder.html, and then, try to generate my own js documentation. At browser, the first loading is fine, but after every first...

View Article

Re : documentjs 3.2.3 issues: "ReferenceError: _gaq is not defined" when...

Here is my temp solution, go to /documentjs/jmvcdoc/production.js, about line 7 , replace "_gaq" with "typeof _gaq != 'undefined' ". It works for now.

View Article


Re : Build issue

As mentioned above, i have chnaged in env.js The line setTimeout(function() this.onreadystatechange(),10) toSetInterval(function() this.onreadystatechange(),10) ...We ignored the one recurring error...

View Article


Re : CanJS multi view - REST sign in example? - not just normal form POST

What it is the problem with that? You should have right (REST) backend that support functions you need (login, register, check password, check name availability, etc). And just call rest endpoint...

View Article

Views with model lists sometimes don't auto-update (js fiddle included)

I'm struggling to understand this live binding CanJS is doing to model lists. I have a few views being populated with model lists.  Some of these views automatically update when a model is destroyed....

View Article

Re : Views with model lists sometimes don't auto-update (js fiddle included)

http://jsfiddle.net/QkAFh/5/

View Article

Re : CanJS multi view - REST sign in example? - not just normal form POST

Thanks @alex - do you have any suggestions to make the process secure?

View Article


Caching and offline storage for models?

Is there a way to cache data or use local storage for the models? The ToDo sample has some LocalStorage property on the model, but can't find this in the documentation:...

View Article

Re : .model() returns undefined

I hope its not =), but it is. I'll correct that.

View Article


Re : Build issue

Thanks! It works for me.

View Article

Re : Testing CanJS Web Apps

There is a strange problem occurring when requiring two or more CanJS Controllers using SquireJS, one controller in each test. If I have more than one test that requires a CanJS controller I get the...

View Article


Re : Views with model lists sometimes don't auto-update (js fiddle included)

Yay!  That works great!  Thank you.

View Article

Re : Caching and offline storage for models?

There is no out of the box solution for can.js. You should implement it via localStorage or other persistent browser storage technology. For my app I'm working on implementation of storing data on...

View Article

Re : Caching and offline storage for models?

The localstorage model is under development (https://github.com/bitovi/canjs/tree/master/model/local) but you can also use the TodoMVC component. We'll definitely clean up and add new plugins for the...

View Article
Browsing all 3491 articles
Browse latest View live