android - with sencha touch and phonegap how to post data to the remote server -
i aways use jsonp
data form remote server display.
, want send comments remote server.
because jsonp use http send, comments length have limit
.
change use post
, got origin null not allowed access-control-allow-origin.
should do? i'm use sencha touch , phonegap build android web app.
you need whitelist domain name attempting access.
there guidance on phonegap docs here: http://docs.phonegap.com/en/2.7.0/guide_whitelist_index.md.html#domain%20whitelist%20guide
obviously, check correct version of document version of phonegap using. i've given link 2.7.0.
Comments
Post a Comment