Hi,
I am trying to take a user preference value thru jason....But i am
facing problem in saving the set pref.set..its not storing..It will be
greatly helpful...if anyone can tell me wats the pbm
function makeJSONRequest() {
alert("1 is called");
var params = {};
params[gadgets.io.RequestParameters.CONTENT_TYPE] =
gadgets.io.ContentType.JSON;
// This URL returns a JSON-encoded string that represents a
JavaScript object
var url = "http://jsonfeed.googlecode.com/files/jsonentry.txt";
gadgets.io.makeRequest(url, callback, params);
};
function callback(obj) {
alert("2 is called");
var jsondata = obj.data;
for (var key in jsondata){
var nument = jsondata[key];
}
alert("nument is " + nument + ".");
prefs.set("num_entries",nument);
alert("num_entries is " + num_entries + ".");
--
You received this message because you are subscribed to the Google Groups
"iGoogle Developer Forum" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/Google-Gadgets-API?hl=en.