PHONEGAP Mobile Development JSONP Protocol

Source: Internet
Author: User

Recently I have been learning Android development. And do a few small software, I will be in the form of Baidu Network and two-dimensional code to share out! The source will be shared on GitHub. I'm still mainly talking about the JSONP agreement. Many beginners may encounter many of the same problems as I do. I couldn't get the data on the server at first. Both local and cross-domain requests cannot be implemented. Then I found the problem. We need to create a new XML folder and then add Cordova.xml to the XML folder. Then add <access origin= "http://59.46.168.82*"/>,origin= "inside is the URL that you need to access the URL of the server." Others believe that we all know, is PhoneGap website or Chinese online can search cross-domain requests, mainly is the JSONP protocol, in fact, is the Ajax cross-domain request.

PHONEGAP Mobile Development JSONP Protocol

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.