A quick question about CouchDB and list functions!

I saw that they work with POSTS.
But I feel that the POST request need to send view parametrs in
application/json format.
The normal browsers today are sending POST's within HTML forms just
application/x-www-form-urlencoded , multipart/form-data  and text/plain

I hoped that *provides / registerType* functions might help me but until
now, no success!
I'm just receiving:

[Mon, 14 Mar 2016 11:35:17 GMT] [error] [<0.18783.0>] attempted upload of
invalid JSON (set log_level to debug to log it)
[Mon, 14 Mar 2016 11:35:17 GMT] [debug] [<0.18783.0>] Invalid JSON: {{error,
                                      {1,
                                       "lexical error: invalid char in json
text.\n"}},
                                     <<"limit=5&okBtn=Go">>}

I succeeded in getting the result from a properly configured xhr call but I
need that a new browser window should read by himself the result, not
"feeded" to some div inside (it's a report with 1000-1500 pages) and I want
to use the "chunked" output of list functions!
That's why I need to use legacy form DOM elements. I don't know any other
method to force a POST result to go into another new browser window.

Thanks in advance,
Teo

Reply via email to