I cannot use the headers because cross-domain issues. I need the
results to be returned in JSONP format with a callback.
Using a show function for this seems like a good idea but it does not
work either!
Here is an example. Notice how the time does not refresh!
https://zuhqtr5.couchappy.com/test/_design/showtimestamp/_show/serverTime
Here is my show function:
{
"_id": "_design/showtimestamp",
"shows": {
"timestamp": "function(doc, req) {return
''+String(Math.round(new Date().getTime()/1000));}",
"serverTime": "function(doc, req) {return
'serverTime({\"timestamp\": '+String(Math.round(new
Date().getTime()/1000))+'});';}"