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

Global model in spine.js application

I have web application written with Spine.js. It has 2 language translations. I want to store current application's translation in Spine Model. My model: class Translation extends Spine.Model @configure "Translation", "lang" @getLang: -> …
0xAX
  • 20,957
  • 26
  • 117
  • 206
0
votes
1 answer

spine.js: Does it really 'pipeline' POSTs?

I was reading this post from Alex Maccaw, where he states : The last issue is with Ajax requests that get sent out in parallel. If a user creates a record, and then immediately updates the same record, two Ajax requests will be sent out at the same…
2020
  • 2,821
  • 2
  • 23
  • 40
0
votes
1 answer

In SpineJS, what is the purpose of @extend when we already have 'extends'

what's the difference between the coffeescript 'extends' and '@extend'? Extend is for inheritance but then is @extend for a mixin, but you only get one object you can mix in?
ABCD.ca
  • 2,365
  • 3
  • 32
  • 24
0
votes
1 answer

Spine.js clear model records on fetch

There is refresh function in Spine.js which has this option: You can pass the option {clear: true} to wipe all the existing records. but let's say i'm implementing pagination and want all records be cleared on every fetch, because now when i fetch…
Dfr
  • 4,075
  • 10
  • 40
  • 63
0
votes
1 answer

Rendering views in spineJS?

Just so you know this is my first question here on stackoverflow, so I apologize if something is wrong with my question. OK, So I have just started using spine, it is my first delve into MVC frameworks and I am having trouble with rendering a .eco…
Ben Smith
  • 51
  • 4
0
votes
1 answer

Destroying records does not actually remove them

I've run into a problem where calling destroy() on a model object triggers the "destroy" event but doesn't actually discard the model object. I am using relations, but seem to be coming across the problem with or without relationships. var stagelet…
Dandy
  • 1,203
  • 1
  • 16
  • 31
0
votes
1 answer

how to use spinejs fetch ajax data with conditions

For example, I have this Model as Users: var Users = Spine.Model.sub(); Users.configure('Users', 'name', 'gender', 'age'); Users.extend(Spine.Model.Ajax); Users.extend({url:"/users"}); Assume that we already have some data saved in database. If…
Matt.Z
  • 602
  • 7
  • 19
0
votes
1 answer

Update model id in SpineJS

If I update it as follows: model = ModelClass.create(id: 1, foo: 'bar') model.updateAttribute('id', '123') I have 2 instances of this object: // in chrome console >ModelClass.records Object {1: ModelClass, 123: ModelClass} How can I update model…
rusffer
  • 88
  • 8
0
votes
2 answers

How we use Local storage (Spine.Model.Local) in spine rails app

I am trying to build a app with rails & spine that support offline browsing. I am facing problem in use of Spine.Model.Local in my one of model. Can any explain me that how we use Spine.Model.Local in our rails & spine app. Thanks
Lalit Kumar Maurya
  • 5,475
  • 2
  • 35
  • 29
0
votes
2 answers

installing hem fails to find strata dependency

I'm trying to install hem on Ubuntu 12.03 LTS and I get the following: Seems like 0.16 or later is not in the registry? Puzzled.. sudo npm link [sudo] password for tim: npm http GET https://registry.npmjs.org/http-proxy npm http GET…
timbo
  • 13,244
  • 8
  • 51
  • 71
0
votes
0 answers

Spine.js change event not firing

I have something like this: events: { "change .name": "dosomething" }, dosomething: function() { console.log("Hi."); } and in my HTML: But doesn't seem to work.
omar G
  • 13
  • 2
0
votes
1 answer

Is Backbone.js or Spine.js only for "offline" apps where you actively change records client side?

I'm making a website where you have a pretty thin vertical bar all the way to the left that has the main menu on it. This is the only contents you have on the website. Then, when you click a menu item, another bar pops up to the right of the main…
Student of Hogwarts
  • 1,108
  • 3
  • 14
  • 28
0
votes
1 answer

Is SpineJS not fit for multi page web site?

I'm newbie on using SpineJS and having happy time with it. And, when I finished contact examples and saw some other components in SpineJS, I realized there's no example about Web Site(which has many html pages). It seems like SpineJS is not proper…
0
votes
1 answer

JS runtime environment

I'm new in JavaScript, so excuse me if this question is not worth asking. I need a JavaScript Runtime Environment with some features: Command line interface Coffee Script compability Possibility of unit-testing(By the way, what can yo say about…
Alexey Sidash
  • 441
  • 4
  • 14
0
votes
1 answer

Adding DateTime attribute to SpineJS models

I am looking for the best way to handle Dates & Times on my SpineJS models. I am working on creating an event calendar of sorts. The first hurdle being to display a nice 6 week calendar. It must start on the last Sunday of the previous month, ending…