Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use in browser? #2

Open
hamnis opened this issue Jan 24, 2013 · 10 comments
Open

How to use in browser? #2

hamnis opened this issue Jan 24, 2013 · 10 comments

Comments

@hamnis
Copy link

hamnis commented Jan 24, 2013

Are there any published artifacts somewhere?

@camshaft
Copy link
Member

I had them added to the github downloads page but they took that away so they'll have to be added to the repo. Also the only one I finished had an adapter for angular.js since that was the only one I used and didn't have anyone else needing the jquery one. I can work on that if you need. Either way ill add the built versions to the repo later today and let you know.

@hamnis
Copy link
Author

hamnis commented Jan 25, 2013

i am using angular.js so that will be fine for me.

@camshaft
Copy link
Member

Oh perfect :). I will get that put in as soon as I can today

@camshaft
Copy link
Member

As I'm looking at the code, I only implemented read in angular. How are you at coffe-script? Here's the file that has the adapter. I'm considering rewriting the whole thing in js so we can reach a bigger crowd. The problem is finding time...

@hamnis
Copy link
Author

hamnis commented Jan 25, 2013

I've never used coffee-script, but it's probably not that hard to learn.
Always looked for an excuse ;) maybe this is it...

Finding time a problem I can relate to.

@camshaft
Copy link
Member

Let me know if you run into any problems and I'd be more than happy to help :)

@zbyte64
Copy link

zbyte64 commented Mar 7, 2013

I'm also trying to get this up in running in a browser. When I load the bare collection json js file I can access CollectionJSON but when I use the angular version, angular complains there is no collection-json module (is this because browserify wraps everything in an anon function?).

I hope to get this up and running soon to use it to demo a collection+json API framework at pycon.

I also started using coffeify with browserify because it seemed to require it, but this is admittedly my first node.js and coffee script app I've dealt with.

@zbyte64
Copy link

zbyte64 commented Mar 7, 2013

Found the downloads: https://github.com/collection-json/collection-json.js/downloads
Will checkout after dinner...

@camshaft
Copy link
Member

camshaft commented Mar 7, 2013

I've started a component version here. Still WIP but this is the direction I would like to head.

@gagabla
Copy link

gagabla commented Dec 11, 2013

Found the downloads, but still i am not able to get this thing to work in a browser.
I want to use it with plain old javascript, no AngularJS or anything. Maybe someone can tell me the magic lines to get the example working? Just including collection-json.js from the downloads and running the example in the next script-tag results in the error message "ReferenceError: require is not defined".
Looking at the code in collection-json.js i wonder if those few actual lines of code are worth this mess of requires, components etc etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants