Re: [Owfs-developers] owhttpd / JSONP / Cross-Origin Resource Sharing (CORS)

2014-03-19 Thread Michael Markstaller
Thanks Colin, but you missed the topic a little ;) There simply is no Apache ;) I already do it a similar way and record stuff in RRDs and want to speed it up without changing the Webserver.. Michael On 19.03.2014 00:45, Colin Reese wrote: Databases are NOT useless! Besides all the data

Re: [Owfs-developers] owhttpd / JSONP / Cross-Origin Resource Sharing (CORS)

2014-03-19 Thread Michael Markstaller
On 19.03.2014 00:44, Roberto Spadim wrote: something like this? |//JSON - instead of: {name:stackoverflow,id:5} //JSONP - return : func({name:stackoverflow,id:5});| Yes, exactly. I think a static callback-function like owhttp_callback({data ..}); would do the job.. While playing around

Re: [Owfs-developers] owhttpd / JSONP / Cross-Origin Resource Sharing (CORS)

2014-03-19 Thread Roberto Spadim
Hummm well all you need is owhttp.c file all json things are there add a new jsonp directory and start a nde patch :) Em quarta-feira, 19 de março de 2014, Michael Markstaller m...@elabnet.de escreveu: On 19.03.2014 00:44, Roberto Spadim wrote: something like this? |//JSON - instead of:

Re: [Owfs-developers] owhttpd / JSONP / Cross-Origin Resource Sharing (CORS)

2014-03-19 Thread Roberto Spadim
i don't know if we have the patch of json, maybe that's a nice start point for you owhttp is very easy to understand :) 2014-03-19 12:44 GMT-03:00 Paul Alfille paul.alfi...@gmail.com: Send a patch. We'll include it. On Wed, Mar 19, 2014 at 9:44 AM, Roberto Spadim robe...@spadim.com.brwrote:

Re: [Owfs-developers] owhttpd / JSONP / Cross-Origin Resource Sharing (CORS)

2014-03-19 Thread Paul Alfille
Send a patch. We'll include it. On Wed, Mar 19, 2014 at 9:44 AM, Roberto Spadim robe...@spadim.com.brwrote: Hummm well all you need is owhttp.c file all json things are there add a new jsonp directory and start a nde patch :) Em quarta-feira, 19 de março de 2014, Michael Markstaller

Re: [Owfs-developers] owhttpd / JSONP / Cross-Origin Resource Sharing (CORS)

2014-03-19 Thread Michael Markstaller
Ok, I'm struggling mainly with the JSONP/Client-side, owhttpd is easy to understand all fine.. (although adding commandline-parameters - see below might require some help) - Now first of all, I'd submit a patch to fix /json outputting valid JSON-Data. This would change the current behavior