dindinet / jsonengine

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

JSONP support #19

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hey Guys,

Love the project and intend on giving it some coverage on a book I am doing on 
writing web apps for Android.  One requirement I have for using the system 
though is to ensure it works with cross-domain requests and I would suspect 
that JSONP would be the ideal solution here.

I've had a hunt through the wiki and the source code and don't seem to be able 
to find any existing support for JSONP.  Is this something that could be 
implemented in the near future?

Cheers,
Damon.

Original issue reported on code.google.com by damon.oe...@gmail.com on 20 Sep 2010 at 3:49

GoogleCodeExporter commented 9 years ago
Hmmm, not sure I was having one of my "smart days" yesterday.  If you fine 
folks to decide to implement JSONP for jsonengine then that would be great, but 
obviously given it's truly RESTful implementation that is going to be a little 
difficult...

Original comment by damon.oe...@gmail.com on 21 Sep 2010 at 12:26

GoogleCodeExporter commented 9 years ago
Hi Damon, 

In what kind of use case you need JSONP with jsonengine? 

- If you're using JavaScript client, you can just put your JS code onto the 
jsonengine, so the domain should be the same.
- If you're using Android client, it can connect to the jsonengine without any 
problem.

Original comment by kazunori...@gmail.com on 29 Sep 2010 at 4:25

GoogleCodeExporter commented 9 years ago
Good idea on the first suggestion - I think that would probably work well.  
I'll have a play with that.

Original comment by damon.oe...@gmail.com on 30 Sep 2010 at 5:35

GoogleCodeExporter commented 9 years ago
Yes, please read the following to put your client on the jsonengine:

http://code.google.com/p/jsonengine/wiki/HowToInstall#Running_jsonengine_on_loca
l_dev_server

Original comment by kazunori...@gmail.com on 1 Oct 2010 at 12:52