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

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

Use SSL and don't use cookie to store password the rest is the matter of backend auth implementation.Also, use input with type="password" =)

View Article


Bug: batchNum of undefined observe.js ln:320

I'm using canJS.I'm doing this:  var order = this.options.Order;        delete order['genius_general'];        delete order['_data']['genius_general'];        var order =...

View Article


Re : Bug: batchNum of undefined observe.js ln:320

Without actually debugging code, I think the problem is that you are deleting a property of an Observe without telling the Observe that the property is no longer there.removeAttr() will do this for...

View Article

javascriptmvc 3.3.0 and steal.config

I've fetched the latest code of javascriptmvc 3.3.0 from github and I'm now trying to change one of my apps to a canjs (amd-version) with the latest steal and canjs.My first of many questions probably...

View Article

Build instructions don't work?

| have tried to follow the instructions here:http://canjs.us/#developing_canjsbut it fails on me. I get the submodules, but there is no js can/util/make.jsand when I try to run js can/build/build.jsI...

View Article


Re : Build instructions don't work?

Solved it, my js command was pointing to spidermonkey, it works if you type./js can/build/build.jsPerhaps this can be corrected in the docs.

View Article

Please use "/b" switch to 'exit 1' call in FuncUnit envjs

Otherwise it closes my cmd window as well.Thanks.

View Article

Re : Why can.Observe.prototype.each() argument order is different from...

Could it be done library-dependant like the wrapping of dom elements?

View Article


Latest steal, steal.config shim deps

steal.config({ amd : true, map: {        "*": {              "jquery/jquery.js" : "jquery",              "can/util/util.js": "can/util/jquery/jquery.js"        } }, paths: {        'jquery' :...

View Article


Re : Build instructions don't work?

Thanks! Fixed it in the docs.

View Article

Re : Please use "/b" switch to 'exit 1' call in FuncUnit envjs

can you be more specific about what you mean?

View Article

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

Thanks Alex :)

View Article

Re : Bug: batchNum of undefined observe.js ln:320

Awesome. Ok that makes sense. So in regards to the model() function.My api's always have a parent node for most model data for ex: {Order:{attr:value, attr:valuek..}}Thats pretty typical with most...

View Article


Re : Bug: batchNum of undefined observe.js ln:320

The documentation you seek is hereEach Model should represent a different "Thing" in your app and I assume that each "Thing"'s JSON response follows the same structure right?In this case, you could...

View Article

Model.created attribute conflicting with event?

This line: in my view : <td><%= this.Order.created %></td> Gives this error: Uncaught TypeError: Object [object Window] has no method 'attr' model.js:1109 That field is the time...

View Article


Re : Bug: batchNum of undefined observe.js ln:320

I will do the later. Thanks for the reference.I appreciate the help while i'm figuring out where everything is at.I noticed that donejs site has more docs than canjs does for models etc.Is it moving...

View Article

EJS BUG looses observableness using canJS

Trying to replicate this in js fiddlle would take forever. I have lots of api's and this is a view 3 levels deep.But this is the view:<ul class="nav nav-pills navtabs"><% var order =...

View Article


Observe.backup and List atrr changes?

Does backup and isDirty supposed to handle changes in attributes that are Observe.Lists? If I add or remove element from nested list it seems that model does not become dirty, is it correct behavior?

View Article

Re : Please use "/b" switch to 'exit 1' call in FuncUnit envjs

I start a cmd window. Then I run some tests using envjs.bat.The tests fail and my cmd window gets closed (exit closes the cmd window as well). So then I have to start a new cmd window.Something like::...

View Article

Re : Base class for Model(Observe).List inheritor

There should be the functionality that each Model class will create a list subclass with its own class. So the default MyItemClass.List should create MyItem classes. So you can just doMyItemClass.List...

View Article
Browsing all 3491 articles
Browse latest View live