Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/blackberry/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Blackberry 为什么我的黑莓设备不能从外部域访问数据,而我的BB模拟器却能?_Blackberry_Cordova_Blackberry Webworks_Phonegap Build - Fatal编程技术网

Blackberry 为什么我的黑莓设备不能从外部域访问数据,而我的BB模拟器却能?

Blackberry 为什么我的黑莓设备不能从外部域访问数据,而我的BB模拟器却能?,blackberry,cordova,blackberry-webworks,phonegap-build,Blackberry,Cordova,Blackberry Webworks,Phonegap Build,我有一个cordova(phonegap)Blackberry应用程序,可以从外部域接收数据。现在,问题是它在我的黑莓设备(有操作系统7)上不起作用,但在我的黑莓设备中可以正常工作- 1.Android应用程序(任何版本) 2.Windows phone 8应用程序 3.黑莓设备的默认网络浏览器 我仔细研究并了解到config.xml文件必须在标记中包含域名。。 所以我做了下面的工作- <access subdomains="true" uri="*" /> <acce

我有一个cordova(phonegap)Blackberry应用程序,可以从外部域接收数据。现在,问题是它在我的黑莓设备(有操作系统7)上不起作用,但在我的黑莓设备中可以正常工作- 1.Android应用程序(任何版本) 2.Windows phone 8应用程序 3.黑莓设备的默认网络浏览器

我仔细研究并了解到config.xml文件必须在
标记中包含域名。。 所以我做了下面的工作-

 <access subdomains="true" uri="*" />

  <access subdomains="true" uri="http://192.168.0.103:81/">
  <feature id="blackberry.app" version="1.0.0.0" required="true"/>
  <feature id="blackberry.invoke" version="1.0.0.0" required="true"/>
  <feature id="phonegap" required="true"/>
  <feature id="cordova" required="true"/>  
  </access>

我不知道为什么我的设备无法通过该域访问。 我还禁用了BB设备上的防火墙

这是我接收数据的代码-

$(document).ready(function(e) {

    $('#restaurantsList').click(function(){

   var myList = '';
     var url = "http://xxx.xx.xxx.xx:81/xxxx/retrieve_all.php"; 
     $.getJSON(url, function(json) {    
                $.each(json, function(i, v) {    
                 myList += '<li id='+v.fb_sno+' onClick="getRestauDet('+ v.fb_sno +')"><img src="'+v.fb_img+'"/><h2>' + v.fb_name + '</h2><h3>'+ v.fb_type + '</h3><h4>'+ v.fb_location + '</h4></a></li>';                                 
                 });
                 $("#descriptionTitle").html("Food & Beverages");
                 $("#listOfItems").html(myList);
                 $('[id=listOfItems]').listview('refresh');
                 });    
                 });        
});
$(文档).ready(函数(e){
$(“#restaurantsList”)。单击(函数(){
var myList='';
变量url=”http://xxx.xx.xxx.xx:81/xxxx/retrieve_all.php"; 
$.getJSON(url,函数(json){
$.each(json,函数(i,v){
myList+='
  • “+v.fb_name+''+v.fb_type+'+v.fb_location+”
  • ”; }); $(“#descriptionTitle”).html(“食品和饮料”); $(“#列表项”).html(myList); $('[id=listOfItems]')。listview('refresh'); }); }); });
    当你说接收数据时,我想你的意思是通过AJAX?@jeffheifetz-我在我的问题中添加了我的代码cordova的哪个版本?@jeffheifetz-cordova的版本是2.8。0@jeffheifetz-关于为什么会发生这种情况有线索吗?:(