简体   繁体   English

Firefox中的Dashcode列表

[英]Dashcode Lists in Firefox

I have a list in dashcode where I update a parameter for the datasource and tell the list to reload. 我在dashcode中有一个列表,在该列表中我为数据源更新了一个参数,并告诉该列表重新加载。 The code is fully functional when view from Safari but the reload command does not appear to work when the same page is viewed in Firefox. 从Safari浏览时,该代码可正常使用,但在Firefox中查看同一页面时,reload命令似乎不起作用。 The code I am using to update my data source is: 我用来更新数据源的代码是:

dataSource.setValueForKeyPath("keyboard/build/", "parameters.directory");
var list= document.getElementById('list');                      
list.object.reloadData();

Is there a different command I need to send for firefox to reload the list? 我需要发送其他命令以使Firefox重新加载列表吗?

If I remember correctly, Dashboad widgets use special, nonstandard Javascript APIs that aren't availible in most Javascript environments. 如果我没记错的话,Dashboad窗口小部件会使用特殊的非标准Javascript API,这些API在大多数Javascript环境中均不可用。 Does Firefox present any errors in its Javascript console (get firebug if you don't have it already). Firefox是否在其Javascript控制台中显示任何错误(如果还没有,请提供firebug )。 Try testing the same issue in Chrome to see if this is a Webkit vs Gecko issue or a Apple vs Everyone Else issue. 尝试在Chrome中测试相同的问题,看看这是Webkit vs Gecko问题还是Apple vs Everyone Else问题。

似乎firefox不能很好地与全局声明的变量一起使用,我摆脱了脚本中的变量,并且页面加载没有问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM