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

Structuring of application state objects

Hi All,I am currently creating a multipage application using canjs, and have a question regarding the best way to structure things.I am using requireJS to manager dependencies in the js (I wasn't...

View Article


Re : Structuring of application state objects

A few thoughts ...1. I would not use the DOM to declare dependencies (data-module="core/controls/exampleControl"). This prevents you from making a build that packages several dependencies for faster...

View Article


Re : Structuring of application state objects

Hi Justin,Thanks for your feedback, that example is exactly what I was looking for.Regarding the hooking up of the controls via the DOM, we also have all controls for a particular site listed in the...

View Article

Re : Structuring of application state objects

Hi,Quick associated question to this.  I am creating an observable which will hold my global application state, and have another observable that represents a player which is added to the global state...

View Article

custom service encapsulation

The documentation says:FindOne is used to retrive a model instances from the server.FindAll is used to retrive a model instances from the server.etc.The examples of custom implemented services do not...

View Article


Generating source maps

Hey all,Did anybody get source maps to work with JMVC?What i want to do is link my production scripts to my devlopment code using source maps.correct me if im wrong here but JMVC uses google closure...

View Article

Re : UTF-8 file encoding

Did you find a solution?I have the same problem. I have Japanese, Chinese, Korean ... in my app.Steal converts it to \ufffd\u884c\ufffd?\ufffd\ (I forgot what it is called like)and fails with some...

View Article

Re : custom service encapsulation

Yes, findAll, findOne and the rest of the CRUD operations return an AJAX deferred.But when they resolved on success, they are resolved with the model or model list. So when you do:// Fetch...

View Article


Re : [solved] custom service encapsulation

No, it makes no sense, because my question relates to custom implementation of the findOne.In fact, i missed ajax parameter 'json foo.models' that makes $.ajax to call Foo.models(response) to convert...

View Article


jQuery 1.9 - reporting reliance on a deprecated feature

I upgraded to jQuery 1.9 and jQuery UI 1.10 last week. I also installed the jQuery Migrate plugin to assist with the transition as quite a few previously deprecated features have now been removed.I get...

View Article

Re : IE Broken?

But what if you're not using git?

View Article

Future of FuncUnit

Hi,I got a few questions that perhaps someone in this forum could help me answer. I'm currently in the need of an web application testing framework and have used FuncUnit in the past, and I must say i...

View Article

can.compute declared as observe method loses right context when called in view

Commander = can.Model({ attributes : { upvotes : 'number', downvotes : 'number', like : 'boolean' } }, { votes : can.compute(function() { return this.attr('upvotes') - this.attr('downvotes'); }) });I...

View Article


Re : jQuery 1.9 - reporting reliance on a deprecated feature

That's good to know. Could you create an issue so that we don't forget about it? Thanks!

View Article

Re : jQuery 1.9 - reporting reliance on a deprecated feature

https://github.com/bitovi/jquerypp/issues/75Done.

View Article


Re : can.compute declared as observe method loses right context when called...

This is expected behavior because "this" doesn't mean anything in the first example.  But, you probably don't need to create "votes" as a compute.  A normal function will be fine:votes : function() {...

View Article

Re : can.compute declared as observe method loses right context when called...

Thanks for an explanation, that makes sense.

View Article


Document Fragment, ejs, jQuery-plugin, width and height

Hello,I have a jQuery-plugin that makes textarea's grow automatically when you type.The plugin creates and shadow-div with the same width as the textarea on initialisation.the content of the textarea...

View Article

Exception handling for steal.js

Hi to all!First of all i'd like to thank to all developers and people who supports such great complex of decisions as jmvc.I'm absolutely not professional in javascript, thats why execuse my, probably,...

View Article

CanJS Tracker binding plugin is throwing an error I can't figure out

thecountofzero authored a very cool plugin for doing binding from form inputs to observers, and I got it loading (potentially wrong) using requirejs, but now that I'm trying to use it, I'm getting an...

View Article
Browsing all 3491 articles
Browse latest View live