1

I am opening a remote url in a child window like this:

intel.xdk.device.showRemoteSite('http//my.site', 0, 0, 24, 24);

Apparently it is possible for me to use 'mainViewExecute' in javascript in my remote site code to execute api methods on the main form eg.

intel.xdk.device.mainViewExecute('intel.xdk.notification.beep(1);');

But the 'intel' object is undefined so it seems I am missing some reference etc. or is it not possible to do this at all?

4

1 回答 1

0

确保你已经<script src="intelxdk.js"></script>添加到你的index.html,你不需要实际的文件,英特尔 XDK 仿真器和构建将自动包含它,你只需要添加一个脚本标签到index.html

于 2014-01-10T19:31:50.927 回答