I have the following bit of code...

   gadgets.io.makeRequest(url, function(obj) {
      /*---- Verify feed ----*/
      if (typeof obj.errors != 'undefined' && obj.errors != '') {
         container.innerHTML = "feed is currently unavailable";
         return;
      }

      var feed = obj.data;
      features = feed['feed']['features'];
      alert(features); // defined with the 'objects' returned.
   }, params);

   alert(features); // features is undefined here

It works just fine as far as retrieving data, but what I would like is
to be able to get the "features" variable after the
gadgets.io.makeRequest method has completed; outside of the actual
method.

If this is an async issue, how can I work around it?

Thanks,
Samuel

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"OpenSocial Application Development" 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/opensocial-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to