English 中文(简体)
电话网络服务没有在互联网上运行?
原标题:phonegap web service is not working in ios?
  • 时间:2012-04-18 07:49:42
  •  标签:
  • cordova

I have write the following code to implement webservice in ios and I have included all the js files mention there but still it is not working.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
  <head>
    <title>90210 Lookup</title>
    <script type="text/javascript" charset="utf-8" src="phonegap.js"></script>
        <script type="text/javascript" src="script/xui.js"></script>
    <script type="text/javascript" charset="utf-8">
    x$.data = {};
    x$(window).load(function(e){
      x$("#returned_information").xhr("http://ws.geonames.org/postalCodeSearchJSON?postalcode=90210&maxRows=10",
        { callback: function(){
            var codes = eval("("+this.responseText+")").postalCodes; /* this should be an array */
            x$("#returned_information").html(codes[0].placeName);
          }
        }
      );
    });
    </script>
  </head>
  <body>
    <h1 id="returned_information">
      Put Stuff in Me
    </h1>
  </body>
</html>

请告诉我我我我在那儿失踪了。

最佳回答

例是书写,不遗漏任何东西。 我认为,我必须允许开放这ur。 如果乌乌没有确定许可,则开始公布项目名称。 页: 1 然后尝试这样做。 我希望它将发挥作用。

问题回答

暂无回答




相关问题
Javascript data store solution using PhoneGap

Does anyone have any experience of storing data in JavaScript across all mobile platforms using PhoneGap? My ideal solution would be to use something like SQLite, but unfortunately SQLite isn t ...

get image from iphone, using phonegap camera api

I m new to Xcode and iPhone apps. I want to select an image from iPhone (camera or library) and send to php via ajax. http://wiki.phonegap.com/iPhone:-Camera-API I m using the phonegap framework, ...

Getting Search Keyboard on iPhone using PhoneGap

I have created a search field on a mobile app i am creating via PhoneGap. I ve tried using with no luck. I also know that i could get around the visual aspect of the input field via CSS & ...

How can I detect a shake gesture in PhoneGap 0.8?

I m using PhoneGap 0.8 and I d like to detect a basic shake gesture. I ve found two relevant snippets: http://groups.google.com/group/phonegap/browse_thread/thread/25178468b8eb9e9f http://phonegap....

How do I fix PhoneGap build errors?

I am trying to build a PhoneGap-based iPhone application, but I keep getting the following two errors: ./build-phonegap.sh: line 6: ./configure: No such file or directory cp: lib/iphone/phonegap-min....

热门标签