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.
On Feb 18, 2:07 am, Trevor Johns <[email protected]> wrote:
> On Tue, Feb 17, 2009 at 10:57 AM, ankit <[email protected]> wrote:
>
> > I am using the Google Calendar JavaScript API to perform authenticated
> > requests. I am facing a problem with the google.accounts.user.login
> > function.
> > At the beginning, after the user allows access to the application, the
> > application page gets loaded and then again user is taken to the
> > Access Request Page again. This keeps occurring repeatedly.
>
> > However, after several times of trying, sometimes the app works
> > properly.
>
> > You will understand better by going here
> > ->http://ankitahuja.com/apps/proxycal
>
> Ankit,
> Try checking to see if the user is logged in before calling
> google.accounts.login(). You can do this by calling
> google.accounts.user.checkLogin(scope).
>
> Let me know if that makes a difference.
>
> --
> 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
-~----------~----~----~----~------~----~------~--~---