srhyne / jQuery-Parse

An AJAX wrapper for the Parse.com REST API
212 stars 31 forks source link

any news on backbone extension #4

Closed lukeholder closed 12 years ago

lukeholder commented 12 years ago

how can I use this in backbone app?

srhyne commented 12 years ago

Hi Luke,

You need to overwrite backbone.sync or a add a sync method to your model. The use $.parse as a replacement. Check this out. http://documentcloud.github.com/backbone/docs/backbone-localstorage.html . I will definitely make an example as soon as I get home from my roadtrip. ;)

alfrednerstu commented 12 years ago

Great project, the demo were amazing! Would love to see Ember.js and/or Page.js sync as well.

srhyne commented 12 years ago

Hi Alfred,

Glad you liked the demo. I'll add Ember and Page to the TODO's on the readme. I definitely need to get some more library support.

jzeltman commented 12 years ago

Just wanted to bump this one as well, because I'm really interested in it ;)

srhyne commented 12 years ago

Luke & Joshua,

Working on it ;) It will be an add on $.parse method that is in it's on file. You will be able to override Backbone.sync or a individual models, collections with $.parse.backbone or should I attach to backbone? Backbone.parse.. Hmmm.

jzeltman commented 12 years ago

Stephen,

I've also been looking at this set of backbone and parse related work by Brian Genisio. Don't know if that offers any help, but thought I'd share.

http://houseofbilz.com/archives/2011/11/07/going-mostly-server-less-with-backbone-js/

srhyne commented 12 years ago

Yeah, been reading this ;)

srhyne commented 12 years ago

check it!

Will add a full-fledged demo soon. Thanks everyone for the "nudging" ;)