incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hp lw <ipaq...@gmail.com>
Subject trouble with lists
Date Sat, 26 Feb 2011 16:08:54 GMT
Hi!
I have a trouble with creating lists functions in Futon. When I write it in
readable form like
{
   "test": "function(head,req){
          start({ headers:{'Content-type':'text/html'}});
          while(row=getRow()){
                send('<div>');
                send(row.value['created_at']+' :
'+row.value['member_id']);
                send('</div>');
         }"
}

I'm always getting error about sintax, and Fields(Design)  function is shown
as a text without highlighting function name. but when I write
all-in-one-line it works ok.
{
   "test": "function(head,req){ start({ headers:{'Content-type':'text/
html'}});while(row=getRow()){send('<div>');send(row.value['created_at']
+' : '+row.value['member_id']);send('</div>');}"
}

What am I doing wrong?
P.S. everthing was fine until I upgrade from 0.8 to 1.02

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message