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
2
votes
1 answer

Hem server serving nothing

I'm trying to get started with spine.js following the steps here: http://spinejs.com/docs/started When i call hem server as documented i get the following response: Starting server on: 9294 If i then visit http://localhost:9294 I get nothing,…
ricick
  • 5,694
  • 3
  • 25
  • 37
2
votes
1 answer

Spine.js IE6 Support

So I've been looking at Spine.js recently as an alternative to Backbone. However, in the documentation is states: Works in all major browsers (Chrome, Safari, Firefox, IE >= 7) then in the comments on this page some one says: Spine doesn't seem…
Ilia Choly
  • 18,070
  • 14
  • 92
  • 160
2
votes
1 answer

Coffeescript - inherit parent class from different coffeescript file

I am creating a spine-rails application and have 2 coffeescript files in lib folder. I wanted to inherit a parent class in another coffeescript file but unable to do so. #= require coffeescript_file_1 Above statement finds the target coffeescript…
random
  • 10,238
  • 8
  • 57
  • 101
2
votes
1 answer

Jasmine .andCallFake not triggering for function call with spineJs

I am using jasmine to test my front end, and have a spy set up to watch for the edit function to be called within a controller. The callback takes a message and either brings up the edit view or throws an error. spyOn(edit, "edit").andCallFake…
David Ziemann
  • 960
  • 1
  • 8
  • 22
2
votes
0 answers

Can I set url root in spine.js router?

Backbone.js provides an option to set the root url Backbone.history.start({pushState: true, root: "/public/search/"} Is this possible somehow with spine.js?
demux
  • 4,544
  • 2
  • 32
  • 56
2
votes
1 answer

Anyone have info on complex Spinejs Routes?

I have three models (album, song, artist) and I want to get a list of each in a certain genre. Right now the backend of this app has one API endpoint (/browse) which gets two arguments (grenre(s) and item type ('album','song', or 'artist') and spits…
nelsonpecora
  • 300
  • 3
  • 9
2
votes
1 answer

'active' class not added when Spine.js controller stack used

I have two very simple Spine.js controllers: class ListController extends Spine.Controller className: 'list' constructor: () -> super class DetailController extends Spine.Controller className: 'detail' constructor: () -> …
zbynour
  • 19,747
  • 3
  • 30
  • 44
2
votes
1 answer

Spine.js: call to super method causes infinite loop

I'm using Spine.js from plain Javascript (no Coffescript). I'm using the syntax described in the documentation to call a parent class method. Specifically: this.constructor.__super__.someFunction.apply(this, arguments) This works fine for a…
vulcan
  • 706
  • 5
  • 8
2
votes
2 answers

Listen to custom events from other Controllers in Spine.js

I have created a Spine Controller and I want to trigger a custom event 'Create' from inside one of it's methods. Then I would like another Spine Controller to listen for that event. How is this possible using Spine.js's custom event methods?
Panos Spiliotis
  • 801
  • 1
  • 9
  • 18
1
vote
1 answer

Spine.js and @navigate() content it not loaded properly

I'm pretty new to spine and right now I'm trying to setup my first small app. I've got a Posts Controller where defining 2 routes: One showing a specific post and one showing all posts class Posts extends Spine.Controller className: 'posts' …
soupdiver
  • 3,504
  • 9
  • 40
  • 68
1
vote
1 answer

Is there an event fired after an eco template is rendered

I need to find a way to attach a jQuery autocomplete handler on to an input field that is rendered as part of an eco template. Here's what works fine when the input field is on the page in the markup HTML:
slarti42uk
  • 451
  • 3
  • 9
1
vote
1 answer

ASP.NET MVC and Spine.js Integration samples

Are there any sample websites/tutorials on integrating Spine.js with ASP.NET MVC? I have looked all over the web and I have only found ONE example from Kazi Manzur, and I was wondering if anybody else had more examples to share and talk about their…
Juan
  • 129
  • 3
1
vote
2 answers

Do I really need an MVC framework like Backbone.js or Ember.js in Rails for a single page app?

Personally Coffeescript is ok, but I would rather it be a supporting player in my Rails app, not most of the logic. From what I can see, you still have to duplicate a lot of the logic when using Backbone.js or Spine.js in Rails. Can I not get the…
user1149547
  • 349
  • 4
  • 10
1
vote
2 answers

Spinejs dependency load order

I'm trying to use elycharts in a Spine.js app. Elycharts monkey-patches jQuery to add $('...').chart(...). Unfortunately, I'm just getting an error saying $ doesn't have function "chart". As this is my first Spine.js app I generated it using…
Joe Fiorini
  • 641
  • 5
  • 15
1
vote
2 answers

Spine JS error rendering .eco template using Hem : "Cannot read property 'length' of undefined"

Learning spine.js I completed both the tutorials no problem, seems like a great framework, but this simple little problem is driving me nuts, because I have no idea what I can do to fix it... From what I understand the variable @list should be…
just__matt
  • 484
  • 6
  • 15
1 2
3
12 13