First widget works in Dashcode but not when deployed

◇◆丶佛笑我妖孽 提交于 2019-12-08 05:20:57

问题


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.

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.

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

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

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

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.

Help appreciated,

Ruby


回答1:


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.



来源:https://stackoverflow.com/questions/1431061/first-widget-works-in-dashcode-but-not-when-deployed

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!