i have project in phonegap and jquery mobile, in my project i want to open a link in my android with android browser but it does not work, but when i open a link from my browser (firefox and chrome) on windows it works? what's the problem?
我有在phonegap和jquery手机中的项目,在我的项目中,我想在我的android中使用android浏览器打开一个链接,但它不起作用,但是当我在Windows上打开我的浏览器(firefox和chrome)的链接时,它有效吗?有什么问题?
this my javascript :
这是我的javascript:
function displayIstilah(data) {
var istilah = data.item;
console.log(istilah);
$('#GambarPic').attr("src", '' + istilah.gambar);
$('#fullName').text(istilah.istilah);
$('#Keterangan').text(istilah.keterangan);
if (istilah.vidio) {
$('#actionList').append('<li><a href="' + istilah.vidio + '" target="_system" location="yes"><h3>Vidio</h3>' +
'<p>' + istilah.vidio + '</p></a></li>');
}
$('#actionList').listview('refresh');
}
and html :
和HTML:
<body>
<div id="detailsPage" data-role="page" data-add-back-btn="true">
<div data-role="header">
<h1>Istilah Astronomi</h1>
</div>
<div data-role="content">
<img id="GambarPic"/>
<div id="istilahdetails">
<h3 id="fullName"></h3>
<p id="Keterangan"></p>
<p id="vidio" target="_system" location="yes"></p>
</div>
<ul id="actionList" data-role="listview" data-inset="true"></ul>
</div>
</div>
1 个解决方案
#1
0
You need to use the inAppBrowser plugin to open links in a browser from your phonegap app.
您需要使用inAppBrowser插件在您的phonegap应用程序中打开浏览器中的链接。
#1
0
You need to use the inAppBrowser plugin to open links in a browser from your phonegap app.
您需要使用inAppBrowser插件在您的phonegap应用程序中打开浏览器中的链接。