Help!! Error in saving JSON documents on couchdb from javascript using kanso

39 views
Skip to first unread message

AM1991

unread,
Mar 21, 2013, 7:22:23 AM3/21/13
to ka...@googlegroups.com

How can a JSON document be saved on couchdb using "db" package in kanso through your javascript code? This is what I've tried but it doesn't work:

var db=require('db').use('it');
db.saveDoc(doc, function(err,response)
           {
        if(err)
        {
            alert('Error');
        }
        else
        {
            alert('Data Added successfully');
        }

      });

Milan Andric

unread,
Mar 21, 2013, 12:17:57 PM3/21/13
to ka...@googlegroups.com
What is the error/response?

--
You received this message because you are subscribed to the Google Groups "kanso" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kanso+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages