Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New to the CF scene
    Join Date
    Dec 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Connecting CouchDB database using Javascript code

    Hello to all,

    I am new to JavaScript,
    I need a javascript/html code for connecting CouchDB database, reading the content from couchdb database and displaying in the browser window.

    Please help me,

    Thanks,
    Nandha.

  • #2
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    17,730
    Thanks
    202
    Thanked 2,508 Times in 2,486 Posts
    JavaScript is purely a client-side language, and unless used with an Ajax call has no capability to read from or write to a file (except a cookie), communicate with the server, or access a database.

    Do you mean Java? Java and Javascript are entirely different programming languages, in spite of the confusingly similar names.

    All advice is supplied packaged by intellectual weight, and not by volume. Contents may settle slightly in transit.

  • #3
    New to the CF scene
    Join Date
    Dec 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks for your reply and suggestions.

    Please provide the client side code with ajax for conncting the CouchDB database.

    Thanks,
    Nandha

  • #4
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    25,020
    Thanks
    75
    Thanked 4,323 Times in 4,289 Posts
    I think you simply need to go read the documentation.

    http://wiki.apache.org/couchdb/
    http://wiki.apache.org/couchdb/Getti...ith_JavaScript
    and more.

    Philip: couchdb is *inherently* an AJAX-based system. It was designed to be accessed completely via HTTP ("RESTful") and thus via AJAX (or SJAX). Fascinating concept.
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.

  • #5
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    17,730
    Thanks
    202
    Thanked 2,508 Times in 2,486 Posts
    Quote Originally Posted by Old Pedant View Post
    Philip: couchdb is *inherently* an AJAX-based system. It was designed to be accessed completely via HTTP ("RESTful") and thus via AJAX (or SJAX). Fascinating concept.
    You tell me something. I had never heard of it before.

  • #6
    New to the CF scene
    Join Date
    Oct 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    So did I... Thank you for some new information for me


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •