CouchDB
  1. CouchDB
  2. COUCHDB-1059

jquery couch list function and html response

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 1.0.1
    • Fix Version/s: None
    • Component/s: JavaScript View Server
    • Labels:
      None
    • Skill Level:
      Dont Know

      Description

      Calling a list function from jquery couch that returns a non json response (html in my case) fails since the return type is hardcoded as json:

      complete: function(req) {
      try

      { var resp = $.httpData(req,"json"); }

      catch(e) {

      //....

      This causes httpData to try and parse the returned data as json, by making this optional (adding returnType option to options):

      var resp = $.httpData(req, options.returnType? options.returnType:"json");

      It is solved,

      I can create a patch if required.

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Ronen
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:

              Development