0

I search a tutorial for learn how to send data from an android application (simple form - application builded with jquery-mobile) to my website under cakephp. I see the JSONP technology, this is the good way, no ? or there is more solutions ?

1
  • JSONP is good to send param across the platform. so go ahead with it. Commented Nov 28, 2013 at 5:34

1 Answer 1

1

JSONP is one way to achive Cross-Domain resource sharing. It is easy on server side just wrap your JSON response with

callback(<-JSON->)

and on client side have unction named callback that take json in argument.

You can also simply change server config to allow all origin so that you won't run into CDRS.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.