0

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?

jcb344
  • 323
  • 5
  • 16

2 Answers2

0

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.

Just Jake
  • 4,698
  • 4
  • 28
  • 33
  • From the firebug console I see the data being retried initially when the page is uploaded but the call for the reloaded data never seems to be processed. No other errors appear. Any ideas? – jcb344 Jul 01 '10 at 19:37
0

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.

jcb344
  • 323
  • 5
  • 16