Uploaded image for project: 'CouchDB'
  1. CouchDB
  2. COUCHDB-751

[patch] to add ability to do a list function GET / POST to jquery.couch.js

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 0.11
    • None
    • None

    Description

      I added a list function query support to jquery.couch.js.

      list: function(list, view, options) {
      var list = list.split('/');
      var options = options || {};
      var type = 'GET';
      var data = null;
      if (options['keys']) {
      type = 'POST';
      var keys = options['keys'];
      delete options['keys'];
      data = toJSON(

      {'keys': keys }

      );
      }
      ajax(

      { type: type, data: data, url: this.uri + '_design/' + list[0] + '/_list/' + list[1] + '/' + view + encodeOptions(options) }

      ,
      options, 'An error occured accessing the list'
      );
      },

      Attachments

        1. jquery.couch.js
          16 kB
          Jarrod Roberson

        Activity

          People

            Unassigned Unassigned
            jarrodhroberson Jarrod Roberson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: