第一个小部件在Dashcode中有效,但在部署时不起作用 [英] First widget works in Dashcode but not when deployed

查看:64
本文介绍了第一个小部件在Dashcode中有效,但在部署时不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

即使在Dashcode中未显示任何错误,我的小部件在部署后也不起作用。对于我对术语的不正确性,我们事先表示歉意。我是新手。

My widget does not work once deployed even though it shows no errors in Dashcode. Apologies in advance for my inarticulartness with the terminology. I am a newbie.

要创建小部件,我删除了默认的.js文件,并将JavaScript plus XHTML粘贴到HTML页面中,并创建了随附的CSS文件。

To create the widget, I deleted the default .js file and pasted the JavaScript plus XHTML into the HTML page and created the accompanying CSS file.

我看到的唯一生成的代码是plist。

The only code I can see that is generated is the plist.

我尝试打开所有权限,但似乎没有任何变化。

I tried opening up all the permissions but nothing seems to change.

OSX实用程序控制台显示的错误超出了代码中数字的范围。

The OSX utilities console shows errors which are on lines beyond what there are numbers for in the code.

我不认为JavaScript / XHTML / CSS是一个问题,因为它在网页中有效并且该小部件确实在Dashcode中有效。

I don't think the JavaScript/XHTML/CSS is the problem as it works when in a web page and the widget does actually work within Dashcode.

帮助表示感谢,

Ruby

推荐答案

如果您使用的是Dashcode,请不要删除默认的JS。文件。这很重要,因为它具有在小部件中渲染大多数零件所必需的加载程序。您始终可以添加自定义javascript文件。它还提供了可使其在Dashcode中正常工作的代码。

If you're using Dashcode, don't delete the default JS. file. This is important because it has the loaders necessary to render most of the parts in your widget. You can always add your custom javascript file. It also provides code that will allow it to work properly in Dashcode.

这篇关于第一个小部件在Dashcode中有效,但在部署时不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆