开发PhoneGap + Blackberry是我最近的噩梦...... onDeviceReady没有解雇,我无法在任何地方找到webworkers.js ...... 任何人都有使用BB 7.1运行的某种复杂应用程序?
添加代码: 我正在使用PhoneGap示例中的默认代码:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="format-detection" content="telephone=no" />
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height, target-densitydpi=device-dpi" />
<link rel="stylesheet" type="text/css" href="css/index.css" />
<title>Hello World</title>
</head>
<body>
<div class="app">
<h1>Apache Cordova</h1>
<div id="deviceready" class="blink">
<p class="event listening">Connecting to Device</p>
<p class="event received">Device is Ready</p>
</div>
</div>
<script type="text/javascript" src="js/webworks.js"></script>
<script type="text/javascript" src="cordova-2.2.0.js"></script>
<script type="text/javascript" src="js/index.js"></script>
<script type="text/javascript">
app.initialize();
</script>
</body>
使用ripple扩展我得到以下控制台日志:
Viewport target-densitydpi is not supported. index.html:24
GET http:// localhost/bb/js/webworks.js 404 (Not Found) index.html:36
Ripple :: Environment Warming Up (Tea. Earl Gray. Hot.) ripple.js:475
XHR finished loading: "http://localhost/bb/config.xml". ripple.js:484
webworks.handset :: Initialization Finished (Make it so.) ripple.js:475
eula response: true ripple.js:483
XHR finished loading: "http://localhost/bb/config.xml". ripple.js:484
Viewport target-densitydpi is not supported. index.html:24
GET http:// localhost/bb/js/webworks.js 404 (Not Found)
我使用的是Windows 8 x64,可能与它有关吗???
C:\ Program Files(x86)\ Research In Motion \ BlackBerry WebWorks SDK 2.3.1.5中没有Ripple文件夹
答案 0 :(得分:0)
我有完全相同的问题。远程托管代码不起作用,因为没有webworks.js可以复制到远程Web树。
如果远程托管,来自phonegap的示例代码无效。