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

Re : Questions about model associations

can.Model are can.ObservesCan you create a fiddle demo'ing what you cannot get to work. I notice that you are kinda doing circular associations above. A book has chapters and a chapter belongs to a...

View Article


Re : Questions about model associations

In your db, chapters likely have a book_id (if you are using a SQL db). If so, your services should reflect that. Yes, associations are a second class citizen because I've not found a comprehensive and...

View Article


steal build not pulling in all files/dependencies

I'm trying to consolidate/compress all the javascript in my project using buildjs.  i am pointing it to the main url of my site which pulls in the master js file while steals in all the dependencies,...

View Article

Re : Questions about model associations

Thanks for your answers guys.What I need (at the minimum) is have access to the inverse relationship of an association. I have this fiddle based on the doc example, and would like to have task.contact...

View Article

steal{ loaded: 'production.css' } not working

I am using the latest steal from github.In production mode I load production.css in the head.I try to tell steal not to load production.css like so:steal = {        env: "production",        loaded:...

View Article


Re : Questions about model associations

Can you please answer my question about the inverse relationships?

View Article

Re : steal{ loaded: 'production.css' } not working

Thank you for the quick reply!As this is mentioned in the forum now it might help others as well.

View Article

Re : Questions about model associations

Given your JSON for contacts, the tasks data does not specify a contact. I realize that it is obvious by looking at the data, as the tasks are an attribute of a contact, but when the data is processed,...

View Article


Re : steal{ loaded: 'production.css' } not working

Where do we specify these settings on steal?

View Article


Re : Purge Events @ can.Observe.stopBatch ?

I don't understand why you need to toggle livebinding on and off. Livebinding will only update a view if you have an .attr() call in your template (or a helper called from the template).So if you are...

View Article

Re : steal{ loaded: 'production.css' } not working

You would put this snippet of code in your main HTML file just before you include steal.js. It is how you cache bust your production files.So include your production.css in the head with some sort of...

View Article

Re : steal{ loaded: 'production.css' } not working

Awesome. This is exactly what I was looking for. Thanks!

View Article

Routing broken in 1.1 with Mootools

I posted this a while ago https://github.com/bitovi/canjs/issues/124 at it seems it's gotten "fixed" in 1.1.However.. .after moving from 1.0.7 to 1.1.3, I cannot get routing to work.If I manually set...

View Article


Re : steal{ loaded: 'production.css' } not working

I used to do the following at the end of the HTML file that loads my app:<script type='text/javascript' src='../steal/steal.production.js?myapp'></script>Should this become:<script...

View Article

Re : Purge Events @ can.Observe.stopBatch ?

Thanks for your replies,this is a rather complex data structure I have to make accessible and maintainable through an easy to use UI.I have a change-event-listener at the data-root for some necessary...

View Article


Re : steal{ loaded: 'production.css' } not working

You load your app like you normally would. Steal will know that your CSS is already loaded and only load the production.jsWhat you did was load the minified version of steal...and that's it.

View Article

Re : Routing broken in 1.1 with Mootools

I believe the suggested fix made it in there. Odd that the route tests are passing but it seems that you are right and there aren't any route events fired. Can you add an issue to GitHub so that we...

View Article


Re : Routing broken in 1.1 with Mootools

Issue #216 filed.

View Article

Re : steal build not pulling in all files/dependencies

in the process of putting together a test app to exhibit this behavior in it's simplest form, I discovered that the steal instance being used to run the build did not match the version of steal being...

View Article

Re : steal{ loaded: 'production.css' } not working

So then do I need to set the "production" property if I am doing the following?<script type='text/javascript' src='../steal/steal.production.js?myapp'></script>Any idea why I am getting the...

View Article
Browsing all 3491 articles
Browse latest View live