0

I created my first app to show some HTML on IBM worklight. Here's what i did:

  1. created a new project added navigation , dojo views and some such stuff

  2. deployed it , previewed it

  3. working fine in console as well as mobile browser simulator but not in avd or device

  4. googled about this error, the only clear info i got was to uncheck the dojo library requests option from the console

    i did that and the before and after results are provided in case you want to see them.

The only error i got in logcat(red colored flags: not sure if errors or warning as some people on google said they can be ignored but still here they are)

08-16 17:14:52.306: E/Web Console(586): Error: scriptError at file:///data/data/com.htmlProj/files/www/default/dojo/dojo.js:21
08-16 17:14:52.327: E/Web Console(586): Error: scriptError at file:///data/data/com.htmlProj/files/www/default/dojo/dojo.js:21

Here are the snapshots of console, MBS, and device before unchecking the Dojo Library requests:

MBS result with dojo library requests Console result device (galaxy grand)

And here are the screenshots after unchecking the Provide Library Requests: device view

The MBS and the console look the same. You can see that the device and the AVD show something yet they don't navigate to different pages, don't show the bottom toolbar.


here is the project structure , i think i have the *root.js files too

enter image description here

4

2 回答 2

0

在 Stackoverflow 中进行快速搜索将提出关于同一主题的这些问题,以及修复:https ://stackoverflow.com/search?q=%5Bworklight%5D%5Bdojo%5D+is%3Aquestion+scripterror%3A21

于 2013-08-17T06:49:10.480 回答
0

我遇到了同样的问题......我已经按照这个论坛中描述的每一步,他们没有工作......最后,我意识到我的应用程序正在要求 mobile-ui-layer-es.js和 core-web-layer-es.js,因此请检查是否将项目所需的库添加到 www/dojo/nls,具体取决于语言。

于 2013-12-04T09:39:44.373 回答