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

Spine.js mobile (phonegap) ReferenceError Jqueryify

My problem is very much like the Hem on windows problem: Uncaught module jqueryify not found I can't deploy my spine mobile app to a android mobile devise using phonegap, it works perfectly in a browser (linux) but whenever I run it through eclipse…
Darcbar
  • 888
  • 1
  • 8
  • 25
0
votes
1 answer

SpineJS and RequireJS

I am using require.js 2.0. I have the following code that is called initially by require: app.js requirejs.config({ paths: { app: '..', spine: 'spine_src/spine', cs: "cs", }, shim: { …
user251291
0
votes
1 answer

What is the best content fallback practice used for JS-based web apps?

I am building my first Spine.js application. In the case of a non-javascript-capable browser, are most not bothering with the fallback? I'm sure it's case-by-case. What is the best implementation? Should I be displaying the static content on the…
Eric M.
  • 5,399
  • 6
  • 41
  • 67
0
votes
1 answer

How do I require Stylus in Spine using CommonJS?

I would like to use the javascript API Stylus offers in my Spine app. To do this, I have to require Stylus. Because Stylus is a dependency of Hem I tried requiring it in the index.coffee: Stylus ?= require('stylus') But this resulted in an…
Nina
  • 23
  • 4
0
votes
2 answers

why is spine.js Module.init implemented like this?

as defined here: Module.init is implemented like: Module.init = Controller.init = Model.init = (a1, a2, a3, a4, a5) -> new this(a1, a2, a3, a4, a5) why is it like this? why define 5 attributes and not use attrs... so attributes are not fixed to…
aschmid00
  • 7,038
  • 2
  • 47
  • 66
0
votes
1 answer

issue when passing argument to a function with `myarguments...` in coffeescript

i have a search model like this (got this from https://github.com/maccman/quora2) Spine = require('spine') classMethods = query: (params) -> @select (rec) -> rec.query params instanceMethods = query: (params) -> attributes =…
aschmid00
  • 7,038
  • 2
  • 47
  • 66
0
votes
1 answer

creating dynamic stylesheets in Stylus using Spine

I would like to have the ability to haven different themes in my Spine application. These themes consists of a set of colors and fonts. These colors and fonts can be edited in a CMS. I would like to know if it is possible to define variables in…
Nina
  • 23
  • 4
0
votes
2 answers

mongo db and rails id issue

I'm working with a js framework called spine. The framework can do all crud operations through REST api(like backbone). When I get a create request to my controller, I get a model data that has an id field from client side, I know that I'm in a…
Chen Kinnrot
  • 20,609
  • 17
  • 79
  • 141
0
votes
2 answers

How to use regular urls without the hash symbol in spine.js?

I'm trying to achieve urls in the form of http://localhost:9294/users instead of http://localhost:9294/#/users This seems possible according to the documentation but I haven't been able to get this working for "bookmarkable" urls. To clarify,…
Paul Young
  • 1,489
  • 1
  • 15
  • 34
0
votes
1 answer

Use jqueryui effects with spinejs

I'm using this dependencies jquery-ui-1.8.18.custom.min.js (custom but with all jqueryui component) jquery-1.7.1.min.js spinejs 1.0.6 I'm developing small spinejs application with jqueryui. I have really basic spine.controller…
Lewy
  • 729
  • 7
  • 18
0
votes
1 answer

Spine.js & rails - Spine.js doesn't use plural form of model name for the routes

I am following the guide of integrating Spine.js with Rails 3. I created a model Activity and follow the spine.js guide to try it out. When I tried to create an activity I got this error: POST http://localhost:3000/activitys 404 (Not Found) Clearly…
larryzhao
  • 3,173
  • 2
  • 40
  • 62
0
votes
1 answer

PUT, DELETE with JS Application (spine.js)

I'm coding a small api in node.js (express) for my spine.js application. Getting and creating new objects in the database is working pretty well. But on deleting/editing I've git a problem right now. Every object gets an individual id created by the…
soupdiver
  • 3,504
  • 9
  • 40
  • 68
0
votes
1 answer

How to react properly on fetched data in spinejs

I've set up a small spinejs application with an api as backend for storing new data und serving already saved data. When my app is loading I'm doing the following: require('lib/setup') Spine = require('spine') Posts =…
soupdiver
  • 3,504
  • 9
  • 40
  • 68
0
votes
1 answer

Spine.js Model: Only first .save() should create new resource, all following should update

When I create and .save() a new Record, my Spine.js Model sends a POST Request to the server to add it to the database. No big deal... But when I issue another .save() to the same model instance I want Spine.js to send a PUT Request just updating…
metafoo
  • 95
  • 1
  • 8
1 2 3
12
13