Questions tagged [spine.js]

Spine is a lightweight framework for building JavaScript web applications.

Homepage: http://spinejs.com/

Spine.js Introduction

Spine is a lightweight framework for building JavaScript web applications. Spine gives you an MVC structure and then gets out of your way, allowing you to concentrate on the fun stuff, building awesome web applications.^

Resources

182 questions
0
votes
1 answer

Why is my Hem server not watching my spine project

I have a spine project that was running fine on my previous laptop, but now I have a new machine and I can't get it to build or watch my project with spine. When I do hem watch -d it says Watching application but then immediately quits that proces…
Jasper Kennis
  • 3,225
  • 6
  • 41
  • 74
0
votes
1 answer

Spine.js and select-all checkbox

I'm trying to make tableView with select-all checkbox on spine.js and coffeescript. I cant understand how i can bind select-all click to select all models in table. "select-all" checkbox is rendered at UserList view. ItemView code: class UserItem…
0
votes
0 answers

Spine.List not rendering in the view

I'm working on a SpineJs app that has the following setup: Posts (essentially chat rooms), which each have multiple messages in them, exactly like a text message stream, or even a chat room stream. I am having problems getting the Spine.List…
Pete
  • 1,472
  • 2
  • 15
  • 32
0
votes
1 answer

Using $.ajaxSetup() to append a data object to AJAX calls in Spine

I am using the $.ajaxSetup() function to append some additional params to each of my AJAX calls in Spine. However it isn't working as i'd expect it to. If i call $ajaxSetup() as follows, my GET requests work fine, but my params are overidden with…
Pete
  • 1,472
  • 2
  • 15
  • 32
0
votes
1 answer

Call the external javascript function in Spine controller

There is a functions.js file located in src/lib/ and there is a function in it. That file has been included into slug.json. How could we call that function inside the controller?
Dima
  • 51
  • 8
0
votes
1 answer

apply proxy function to eventhandler using Hammer library

The proxy function will not work, but a normal function is ok What can i do to make it work It's problably a scope issue, but how do I use "apply" or "call" in this context? delegateEvents: function(){ for (var key in this.events) { …
Richard
  • 4,516
  • 11
  • 60
  • 87
0
votes
1 answer

SpineJS stack doesn't add active class to controllers

Spine = require('spine') Welcome = require('controllers/welcome') Signup = require('controllers/signup') class Main extends Spine.Stack controllers: welcome: Welcome signup: Signup default: 'signup' routes: '/welcome':…
Miles
  • 1,615
  • 4
  • 17
  • 42
0
votes
1 answer

Heroku deployment - command not found

I am trying to run an application on heroku. Although, as soon as it starts, the app crashes. The log shows this: 2013-07-20T20:06:20.086425+00:00 heroku[web.1]: State changed from crashed to starting 2013-07-20T20:06:27.769210+00:00 heroku[web.1]:…
Giannis
  • 5,286
  • 15
  • 58
  • 113
0
votes
1 answer

keyup binding and updateAttribute in spine.js only grabbing first few characters of string

I'm working with a spine.js application and a django restful backend. A simple binding for a keyup event on an input fires off a function in my controller that tries to updateAttribute a certain model record. I did a log.console in the controller…
rgb
  • 3,144
  • 3
  • 17
  • 26
0
votes
1 answer

How to use Spine.js with millions of records and a filter?

I'm making a webapp where the user is presented with a list. There are millions of records in total, but the user can only see a hundred at a time. More records should only be loaded when the user reaches the bottom of the list. (Scrolls down the…
Friend of Kim
  • 850
  • 9
  • 24
0
votes
1 answer

Purpose of @ symbol infront of functions

I cant understand exactly what @ (this) does infront of class functions. I am using Spine framework, and I got a class Contact which extends Spine.model. I override the Spine methods for creating, deleting, fetching etc, and have them print on the…
Giannis
  • 5,286
  • 15
  • 58
  • 113
0
votes
1 answer

SpineJS / Hem + Jade Templates

How do you get Spine/Hem to render Jade templates? In the last line of the documentation it says you just have to include jade's runtime.js as a lib in slug.json but when I do that and run my application I get: Uncaught ReferenceError: exports is…
Snowman
  • 1,160
  • 1
  • 8
  • 24
0
votes
1 answer

SpineJS + Express

Does anyone know of any tutorials or examples of applications built with SpineJS and Express? I've played around a lot with both but struggling to understand a few points. Currently I've got my back end working by doing coffee app.coffee which runs…
Snowman
  • 1,160
  • 1
  • 8
  • 24
0
votes
2 answers

Rivets and Spine js example

I am working on a Spine App that users rivets js in lieu of a templating engine and so far I am delighted with the rivets bindings, my views are more concise and readable and I have a clean separation of concerns: my controllers only take care of…
Macario
  • 2,214
  • 2
  • 22
  • 40
0
votes
1 answer

Extending Spine - Change storage type

As part of a dissertation project I am looking to extend Spine.Model in order to support editing of realtime objects. My current spine application is using Model.local. When I run the app using dev tools of the browser, I can see all my models…
Giannis
  • 5,286
  • 15
  • 58
  • 113