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
3
votes
2 answers

Spine.js and jquerymobile-router

I'm trying to figure out how to use https://github.com/azicchetti/jquerymobile-router in my Spine project. I'm not able to find any examples of how to integrate it into a Spine app. I'm hoping someone has an example of how to use it with Spine.
Martin
  • 2,302
  • 2
  • 30
  • 42
3
votes
3 answers

Backbone.js - Other frameworks that provide Collections

I am inclined to BackboneJs for mvc structuring javascript files now. I am quite happy with the current setup and i would like to now improve my knowledge of other javascript frameworks available that is tiny in it's core like Backbonejs, provides…
Deeptechtons
  • 10,945
  • 27
  • 96
  • 178
3
votes
1 answer

Eco Error Message: Unexpected 'INDENT' in Windows

I'm currently using spinejs and eco template system in rails project. It's work perfectly on my Mac, however there is a strange indent error when I deploy it on Windows. And the code is:
<% for contact_record in…
Ray Shih
  • 933
  • 8
  • 18
3
votes
2 answers

Spine.js error when trying to use its Ajax features

I am trying out Spine.js and want to configure it to interact with my app on server side. Here is the code: var Album = Spine.Model.sub(); Album.configure("Album", "public"); Album.extend(Spine.Model.Ajax); The last line causes this error: uncaught…
Sergei Basharov
  • 51,276
  • 73
  • 200
  • 335
3
votes
2 answers

Most elegant way to define private "class" functions in Spine

I'm currently diving into Spine and I'm currently asking myself what would be the most elegant way to define a private function, using Spine's class creation method. var PrinterManager = Spine.Class.create({ init: function () { }, …
Juri
  • 32,424
  • 20
  • 102
  • 136
3
votes
2 answers

when using Spine.js and Hem, is there a way to stop it from compressing the Javascript?

I am just starting out with Spine and am going for the default implementation of using Hem. I am basically running the "hello world" todo example app, but trying to substitute a server backend rather than local storage. But when I run the…
zenWeasel
  • 1,889
  • 2
  • 22
  • 27
2
votes
1 answer

Spine javascript unable to unbind proxied callbacks

I am using spine javascript library for a standalone javascript application. I heavily use the publisher/subscriber model and bind proxied callbacks to spine models. When I try to unbind a proxied callback, it doesnt unbind it. This happens only…
2
votes
1 answer

Collections in Spine.js

I need support for collections in spine.js. I know that spine.js doesn't support this at the moment - not sure if it ever will. Has anybody added this feature or know the best way to go about implementing it?
2
votes
1 answer

How to get Spine.js Ajax persistence working

Learning Spine.js for a new app. The Spine framework is elegant. I am not quite able to get the Ajax persistence working. No error messages, just no activity. I have a REST api http://localhost:8080/services/api/myservice/persons that returns a…
prototype
  • 7,249
  • 15
  • 60
  • 94
2
votes
1 answer

Spine JS Model: How does Spine handle a server response containing records for a related model?

I've only started using Spine.js and it's really enjoyable to user. Does anyone know if Spine handles related objects from a server response? example below. If it does - great - if not? then any suggestions of how to do this would be great!…
2
votes
2 answers

spine.js: "Uncaught Unknown record"

I use spine.js in conjunction with the Spine.Ajax Module to load stuff via JSON from the Server. I've probably run into some syncronisation problem. I have a sidebar which just binds to the refresh and change events and then is rendered: Survey.bind…
iblue
  • 29,609
  • 19
  • 89
  • 128
2
votes
2 answers

How should one go about using both JavaScript and CoffeeScript in a Spine Application?

I'm just now wrapping my head around Spine, Hem, CoffeeScript, etc. in an effort to build a browser-based application. I'm wanting to use a JavaScript graphing library in the application that I'm pretty sure isn't written in CoffeeScript (does that…
Bryan
  • 2,205
  • 1
  • 23
  • 43
2
votes
3 answers

Can JS MVC frameworks be set up to have api authentication?

I have been looking at backbone.js/spine.js and I like the idea of just setting up a REST api and putting all of the logic in the client. But is there any way to secure the REST api when using ajax model persistence? Or can someone just look at my…
Mantas Vidutis
  • 16,376
  • 20
  • 76
  • 92
2
votes
1 answer

Deploying spine.js application on local Linux box

I have written a simple web application using spine.js (node.js and hem procedure is followed). I have my development server running by executing "hem server" command. In order to deploy it, I first built the application using "hem build" and it…
2
votes
2 answers

Using spine.js with haml

currently I'm playing a little bit with spine.js I have red the documentation about views and there they have shown an example with eco as templating engine. Until now i don't really like the eco engine. I would prefer to use haml as my templating…
soupdiver
  • 3,504
  • 9
  • 40
  • 68
1
2
3
12 13