phonegap form submission to remote server

浪尽此生 提交于 2019-12-01 09:07:36

A few points:

1. Add the remote server to the whitelist...if you are using blackberry ou must edit the config.xml file, if is a ios app, you must change the plist file of the project.

EDIT 2011-11-03: In Android: Make sure this line is in phonegap app manifest file: < uses-permission android:name="android.permission.INTERNET">

2. Try adding this header to the php file header('Access-Control-Allow-Origin: *');

EDIT 2011-11-03: this header must be included on the beginning of the PHP file.

  1. $('#result').html(output).show(); the show method is not necesary, you must use that only if the field has the hidden attribute.

Good Luck!

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!