Ok, my app was built using v0.7. I am now trying to update to v0.8. I want to make the transition smooth for my users by ensuring no data is lost when I switch to the v0.8 version.
In the 0.7 version I do not encode the data as JSON and that is the data I am trying to retrieve. I had actually left the gadgets.json.parse in the code because I was testing to see if that would fix my problem.
Whether or not I use gadgets.json.parse any fields that have letters in them are returned as "false". I am referring to the array that is returned from var data = mydata.getData(); On the other hand, any fields that are stricly numeric, will actually parse fine and return a number to me.
I found a javascript var dump function and below is a dump of the data array:
'XXXXXXXXXXX' ...
'bgcolor' => "false"
'feedurl' => "false"
'linkcolor' => "false"
'rssreader_displayhtml' => "false"
'rssreader_maxitems' => "false"
'rssreader_maxlength' => "false"
'rssreader_rsslabel' => "false"
'txtcolor' => "false"
'rssreader_displayheight' => "550"
'XXXXXXXXXXX' is my userid, which incidently does not contain the prefix myspace.com: while the userid returned from: viewer.getData().getId(); does contain this prefix. I am wondering if this somehow is affecting my ability to retrieve the data?
I had to do something like this to get the correct userid key: userid = userid.replace('myspace.com:', '');