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

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 0.11
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      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

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

              Dates

              • Created:
                Updated:
                Resolved: