简体   繁体   中英

POST form from jquery-mobile (android app) to a cakephp website

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 ?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM