Question

I have a list in dashcode where I update a parameter for the datasource and tell the list to reload. 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. 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?

Was it helpful?

Solution 2

It appears that firefox does not work well with globally declared variables, I got rid of the variables in my script and the page loaded no problem.

OTHER TIPS

If I remember correctly, Dashboad widgets use special, nonstandard Javascript APIs that aren't availible in most Javascript environments. Does Firefox present any errors in its Javascript console (get firebug if you don't have it already). Try testing the same issue in Chrome to see if this is a Webkit vs Gecko issue or a Apple vs Everyone Else issue.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top