2009/2/18 ankit <[email protected]>: > > I think the problem occuring is that I am calling getFeed() before > logIn() does it's work completely. > > function _run() { > calendarService = new google.gdata.calendar.CalendarService > ('proxycal'); > logIn(); > getFeed(); > }; > If I comment getFeed() and then visit the app, it completes loading. > Then, if I comment out getFeed() and visit the app again, it works > fine. How do I solve this since google.accounts.user.login() does not > have a callback function. >
Hi Ankit, Sorry for the delay in replying. My advice would be to call google.accounts.user.checkLogin() to see if the user has a valid auth token. If they don't, then don't call getFeed(). I took a look at your app, and it looks like you're doing this. Can you confirm whether you're still experiencing this problem? -- Trevor Johns --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Calendar Data API" 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-calendar-help-dataapi?hl=en -~----------~----~----~----~------~----~------~--~---
