Comments on: Trying Out CouchDB In FireBug http://benatkin.com/weblog/2008/09/13/trying-out-couchdb-in-firebug/ seeing what sticks Thu, 08 Apr 2010 23:10:59 +0000 hourly 1 http://wordpress.org/?v=3.0 By: Jim Jeffers http://benatkin.com/weblog/2008/09/13/trying-out-couchdb-in-firebug/comment-page-1/#comment-56465 Jim Jeffers Fri, 16 Jan 2009 08:18:35 +0000 http://www.benatkin.com/weblog/?p=116#comment-56465 Wow - great article Ben. I just read this now that I too am fooling around with CouchDB. Good stuff! I was just asking this very same question when Chris Chandler was explaining how it worked at hacknight. Wow – great article Ben. I just read this now that I too am fooling around with CouchDB. Good stuff! I was just asking this very same question when Chris Chandler was explaining how it worked at hacknight.

]]>
By: beppu http://benatkin.com/weblog/2008/09/13/trying-out-couchdb-in-firebug/comment-page-1/#comment-55612 beppu Wed, 07 Jan 2009 11:59:15 +0000 http://www.benatkin.com/weblog/?p=116#comment-55612 @Charlie: It's called jquery.couch.js http://svn.apache.org/repos/asf/couchdb/trunk/share/www/script/jquery.couch.js @Charlie: It’s called jquery.couch.js

http://svn.apache.org/repos/asf/couchdb/trunk/share/www/script/jquery.couch.js

]]>
By: Charlie http://benatkin.com/weblog/2008/09/13/trying-out-couchdb-in-firebug/comment-page-1/#comment-55425 Charlie Tue, 06 Jan 2009 04:46:22 +0000 http://www.benatkin.com/weblog/?p=116#comment-55425 Another thought might be to write a simple javascript library that thinly wraps the couchdb interface to make it (even!) friendlier both for command line use in something like firebug and within scripts in general. Such a library could be folded (npi) into futon to make your exercise above a little easier as well as put it into the hands of everyone who has couchdb. Futon could even use it to include a text field within the page giving a command line interface apart from firebug... Another thought might be to write a simple javascript library that thinly wraps the couchdb interface to make it (even!) friendlier both for command line use in something like firebug and within scripts in general.

Such a library could be folded (npi) into futon to make your exercise above a little easier as well as put it into the hands of everyone who has couchdb. Futon could even use it to include a text field within the page giving a command line interface apart from firebug…

]]>
By: Ben Atkin http://benatkin.com/weblog/2008/09/13/trying-out-couchdb-in-firebug/comment-page-1/#comment-43400 Ben Atkin Sat, 13 Sep 2008 22:49:31 +0000 http://www.benatkin.com/weblog/?p=116#comment-43400 Aimee, I had forgotten that Firebug used to not have the extra step to load responses. I would like it to work the old way for me. I don't see why it's not configurable. I hope Firebug hasn't gone down the path of insisting on a simple UI at the cost of customizability like Gnome has. If it has, perhaps a fork or an extension that interacts with the Firebug extension will be in order. Thanks for telling me about the Same Origin Policy. I seem to remember hearing that phrase before, but it didn't come to mind when I was googling for information on the matter. I'm going to try getting my custom JavaScript environment working with CouchDB now that I know this. Aimee,

I had forgotten that Firebug used to not have the extra step to load responses. I would like it to work the old way for me. I don’t see why it’s not configurable. I hope Firebug hasn’t gone down the path of insisting on a simple UI at the cost of customizability like Gnome has. If it has, perhaps a fork or an extension that interacts with the Firebug extension will be in order.

Thanks for telling me about the Same Origin Policy. I seem to remember hearing that phrase before, but it didn’t come to mind when I was googling for information on the matter. I’m going to try getting my custom JavaScript environment working with CouchDB now that I know this.

]]>
By: aimee.mychores.co.uk http://benatkin.com/weblog/2008/09/13/trying-out-couchdb-in-firebug/comment-page-1/#comment-43366 aimee.mychores.co.uk Sat, 13 Sep 2008 17:36:31 +0000 http://www.benatkin.com/weblog/?p=116#comment-43366 Woohoo!! It's so fun to see people trying out different things with CouchDB! :) Oh, that Firebug change annoys me so much where it doesn't load the POST response for you. At work i actually went back to the previous version for exactly that reason. I believe the AJAX problem you had from the Merb project is to do with the AJAX "Same Origin Policy" to stop you calling pages on another server. I didn't realise it prevents you going across ports on the same server though! It is easily overcome by doing an AJAX request to a proxy page on your own site which does something like this: <code>response = Net::HTTP.get_response(URI.parse(CGI.escape(params[:url]))) render :text => response</code> I'm really excited to see where you go with Merb and making an application which uses CouchDB directly! :) Woohoo!! It’s so fun to see people trying out different things with CouchDB! :)

Oh, that Firebug change annoys me so much where it doesn’t load the POST response for you. At work i actually went back to the previous version for exactly that reason.

I believe the AJAX problem you had from the Merb project is to do with the AJAX “Same Origin Policy” to stop you calling pages on another server. I didn’t realise it prevents you going across ports on the same server though!

It is easily overcome by doing an AJAX request to a proxy page on your own site which does something like this:

response = Net::HTTP.get_response(URI.parse(CGI.escape(params[:url])))
render :text => response

I’m really excited to see where you go with Merb and making an application which uses CouchDB directly! :)

]]>