-
Notifications
You must be signed in to change notification settings - Fork 185
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
client-side support? #74
Comments
If I were going to do it ... I would probably estimate it at about 20 hours of work. I feel like I have a pretty solid understanding of the code base. Try digging in, things to look out for:
I honestly don't view this as a high priority for cradle. Maybe the best thing to do here is to create a separate library "inspired by" cradle? Just my $0.02 |
It may be too much work but I feel quite different about the need for On Mon, May 16, 2011 at 1:16 AM, indexzero
Mark Hahn |
I think it's an interesting idea, and would be beneficial, but alas don't have the time for it. I don't think it would be too hard, as it pretty much has no dependencies, and most of the node-specific code is in |
Could I replace these with function calls that conditionally use
I glanced at that code, but I don't understand the problem. What
There are packages that allow node modules to run in any browser.
Yes. This is to be expected. On Mon, May 16, 2011 at 1:16 AM, indexzero
Mark Hahn |
Again, just my $0.02 |
require would be a good fit. let me know if I can help. |
I am still trying to decide if I can spend the time on this, so any On Mon, May 16, 2011 at 6:11 PM, marcuswestin
Mark Hahn |
I'm tight on time myself, but this will get you started:
Then open http://localhost:8080 in browser After that, try
and add |
I use jquery.couch.js for accessing couch from a client browser. I also wrote a thin jquery that implemented just enough for jquery.couch.js to work in node. Now I can write code that works identically in either the server or the client. This has been in production for months.
However, jquery.couch.js is not wonderful. I would really like to use cradle, but I'm trying to use all tools that are transparent to whether they are in the client or server. How hard would it be to do a client version of cradle?
I would take anything but ideally it would work with jquery and ajax. Websockets is a little immature right now.
I haven't looked at cradle's code yet. Does all traffic flow through a single http-client routine? If so I would think hooking it up to jquery would be pretty easy. As I mentioned above I did the opposite and it only took me a day or so.
The text was updated successfully, but these errors were encountered: