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
1
vote
1 answer

Good idea/Best way to extend Spine.Model

[background below] I've got my data modelled out in SQLObject in Python on the back-end. Right now I'm converting an SQLObject to a dict, and grabbing all the keys from the dict and then exporting that as a JSON document (so just a JavaScript…
tkone
  • 22,092
  • 5
  • 54
  • 78
1
vote
0 answers

Rails 3.1 app using gem spine_rails (0.0.9)

I created rails3.1 app in spine.js using spine_rails (0.0.9) gem and eco gem. I created two spine:scaffold in my rails app to relate has_many, belongs_to relationship. I included hasMany, belongs_to in spine:model. I don't know how to get id from…
visnu
  • 935
  • 6
  • 16
1
vote
1 answer

rails3 app using gem 'spine-rails' (0.0.9)

I created sample rails3 app using gem spine-rails (0.0.9) to implement spine.js. I dont know how to create relationship (belongs_to,has_many) using spine-rails.
visnu
  • 935
  • 6
  • 16
1
vote
2 answers

Stop Hyperlink Event in Spine.js

I've defined an event in a Spine.js controller like so in CoffeeScript: class Charter extends Spine.Controller events: 'tap #update': 'update' constructor: (params) -> super update: (e) -> dosomething() …
djlumley
  • 2,955
  • 2
  • 24
  • 30
1
vote
1 answer

Load specific groups of data using Spine.js?

Spine.js takes the stance that all data should be loaded upon first request and operated on from within the browser as to avoid blocking the UI. I totally agree. But... what if I want to load all of the data for a single month. Not ALL of the data…
rmontgomery429
  • 14,660
  • 17
  • 61
  • 66
1
vote
2 answers

How do I include a javascript library for reference in spine.js

I have an old javascript library with methods I need to use from within my spine app. How do I include it for use within spine?
user476174
1
vote
1 answer

require spine mobile using Sprockets in rails 3.1.0

I would like to use the mobile library for spine in Rails 3.1.0. I tried adding the following to my index.js.coffee: #= require spine.mobile and #= require spine/mobile But that both results in an error: couldn't find file When using hem you can…
Nina
  • 23
  • 4
1
vote
2 answers

What Javascript framework is best for this situation?

I want to build a contact list in js, but there are so many js technologies like backbone.js, spine.js, knockout.js, etc. that I dont really know which one is best for me. My contacts have a few overarching types: FacebookUser, User, and UserList.…
chacham15
  • 13,719
  • 26
  • 104
  • 207
1
vote
1 answer

How spine routing (spine js mvc) work?

I have tried Spinejs library for a few days, I have the document on Spinejs.com but till now, I still don't know how exactly Spine routing work. From the document, I know how to create a new route and add them to Spine routing. But how it work? I…
UmbalaAZ
  • 165
  • 1
  • 1
  • 11
1
vote
1 answer

Create spine controller

Im using spinejs, coffeescript and asp.net mvc. Heres the code for spine controller class: class Schedules extends Spine.Controller constructor: -> super alert "Created" events: "click": "click" click: -> alert("Was…
Yaroslav Yakovlev
  • 6,303
  • 6
  • 39
  • 59
1
vote
2 answers

How can I add dependencies to my Spine app?

I'm trying to make a new spine javascript app using d3 (generated using Spine.app). I tried the following: Edit slug.json, and add "d3" to the dependencies array. Run "npm install ." Run "hem build" Hem complains: node.js:134 throw e; //…
dsummersl
  • 6,588
  • 50
  • 65
1
vote
0 answers

Try to have the animation effect by PixiJS but it didn't show anything

I am the beginner of PixiJS and learn it by its website examples. I want to practice animation but it didn't show anything. This link is the effect it should like to. This is the first way I tried, code works successfully but the screen didn't show…
Zhao Chen
  • 11
  • 1
1
vote
1 answer

Spine multiple animations

So I have 2, or more skeletons for an animation (so, 2 or more json files). I want them to play at the same time and 10 seconds after, to play another animation. Problem is that there is only one animation playing, and the second isn't…
Edwin Dayot
  • 248
  • 1
  • 14
1
vote
1 answer

Running "hem build" on SpineJS does nothing

I've followed this tutorial http://spinejs.com/mobile/docs/index And, well, there is no application.js file. Missing on this documentation, it seems I should run hem build to the *.coffee files be compiled to application.js, but if I run it all I…
Pedro Bernardes
  • 706
  • 1
  • 8
  • 20
1
vote
1 answer

Spinejs: binding events for nested controllers

I'm having a problem with nested controller like this For example, I have controller A class A extends Spine.Controller events: 'click .foo' : 'handle_bar' Then I create two instance of A like this a = new A b = new A a.append b When I click…
Thịnh Phạm
  • 2,528
  • 5
  • 26
  • 39