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

Re : Passing additional parameters into save()

Hi Curtis, Below is the Model I have and the URl I am trying to hit has /site/{site_ID}/location/{location_ID} can.Model('Bio.Model.SiteLocation',/* @Static */{    models : function(instanceRawData){...

View Article


Re : Passing additional parameters into save()

save() calls create or update and the first parameter to both of those methods are the attributes of the model instance you called save on. One approach you could take is having the siteId in the model...

View Article


model subclass missing model find methods (like findOne)

Well I didn't find anyone else listing this problem so I'm sure I'm misunderstanding the doc but can't figure what I'm doing wrong.   I'm trying to get a subclass of a model created based on the...

View Article

Re : Passing additional parameters into save()

will give it a shot, thanks!

View Article

Re : model subclass missing model find methods (like findOne)

This is because findOne, findAll etc. are static and not prototype methods. So you can call them withCustDtlModel.findOne()On actual instances you need to access the constructor property:var cm1 = new...

View Article


How do you build nested components

HiIn my current app we are going after a model of nested components, these components are nested on the server side and all the html provided already built to the client. For example you might have a...

View Article

steal/build produces an empty production.js file

I am using the following command to build:steal/js steal/buildjs index.html -to stealbuild   my index.html contains links to other js and css files. I get no errors, this is the exact output I...

View Article

Re : steal/build produces an empty production.js file

When you see your index.html has links to other files, is that just a bunch of <link> and <script> tags? If I could see what index.html looked like, it might give me a better idea of the...

View Article


Re : steal/build produces an empty production.js file

Here is my complete Index file on pastebin: http://pastebin.com/SyZ9R1n9Thanks for responding to my post!

View Article


Re : Error: Permission denied to access property 'steal'

I can get this error showing in Firebug consistently if I open a new tab somewhere else, like from the Twitter site, and then change the URL to a javascript MVC project. Error: Permission denied to...

View Article

Re : Don't update from master

How is it coming along?  Anxiously waiting for JMVC release!

View Article

Re : How do you build nested components

I don't think that an approach where you nest javascript code within a mustache template is going to work. The 'nesting' of C2 would need to happen in the "browser renders this" bits of markup (near...

View Article

Re : How do you build nested components

Hi Thanks for the reply, this is an interesting problem, I can see what you are saying about having a main component that initialises the others, this seems the only way to do it with Can. The only...

View Article


Re : Integrating new stealJS in JSMVC 3.2.4, stealconfig.js?

Ok.I once found another thread where JSMVC 3.3 was announced "in a few weeks". But this one is more than 4 months old ;)I'll wait some more weeks then.

View Article

Firefox: TypeError: steal.dev is undefined

We have created a new Javascript MVC application and just put it out to beta. I've got this error repeated 35 times on a single day in the logs:    error_message: TypeError: steal.dev is undefined...

View Article


Re : [patch] can.Model.models incorrectly detects already converted data

Thanks for the comment, Curtis.I'd like to keep the cache in Model.List, because I'd like to make sure that the rendered models on the page gets automatically updated when underlying data is refreshed...

View Article

Re : API guide on new canjs site is inconvenient

The web font has been a big criticism point and we're definitely working on it.I think that the single page documentation style is not the way to go for larger APIs. There simply is no way to cram...

View Article


Re : API guide on new canjs site is inconvenient

ok, I hope this helps.Also, some links (with name source) are unavailable (https://github.com/bitovi/canjs/tree/_guides/constructs.md)

View Article

Re : API guide on new canjs site is inconvenient

What does that look outdated and excessive?  What would you replace it with?

View Article

Re : [patch] can.Model.models incorrectly detects already converted data

CanJS has a model store that does exactly this. Any model instance that is bound to (live binding) will be put in the model store. If a findAll or findOne call updates the data for that instance (same...

View Article
Browsing all 3491 articles
Browse latest View live