Franklin3 / chrometophone

Automatically exported from code.google.com/p/chrometophone
0 stars 0 forks source link

JSON Response #6

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

I know chrome to phone is ment to be only for Chrome, but users of other 
browsers love Android too. 

Personally I use Opera, there for I created a bit of a hack to use 
chrometophone with any browser. 
http://my.opera.com/paddy2k/blog/2010/05/21/browser-2-android

I would like to write something a little more gracious, kinda like what you 
guys implemented with the Chrome extension. 

Would it be possible to update SendServlet.java to respond in JSON, and 
have the option to return a callback?
e.g.
String callback = req.getParameter("callback");
        if (callback) {
                 resp.getWriter().println(callback+ "({\"status\": 
"+OK_STATUS+"})");
        }
        else{
             resp.getWriter().println("{\"status\": "+OK_STATUS+"}");
        }

Original issue reported on code.google.com by patrick....@gmail.com on 21 May 2010 at 1:12

GoogleCodeExporter commented 9 years ago
It looks like this request is actually for JSONP, and if so, I totally agree.  
Any
browser, with a bookmarklet, can then also use this functionality.

Original comment by arant...@gmail.com on 23 May 2010 at 10:52

GoogleCodeExporter commented 9 years ago

Original comment by burke.da...@gmail.com on 24 May 2010 at 11:01