hii jeevan,
I tried the same wat you suggested.. like first the user has to
authenticate himself and then try accessing the app which is deployed
inside the Salesforce.com
I have called the login method of js api inside getcalendardata ()
function to exchange the token while passing the request to access the
data. But again i'm getting the same error
saying:
"http://force.com" has not been registered
if i don't use the login method..It throws the error
Sample code is pasted here..
function getCalendarData()
{
var calendarService= new
google.gdata.calendar.CalendarService('GoogleInc-jsguide-1.0');
var feedUriCalendar = 'http://www.google.com/calendar/
feeds/default/allcalendars/full';
// google.accounts.user.login(feedUriCalendar); //the
login method of js api
var callbackCalendar = function(result) {
var entries = result.feed.entry;
XML+="<root>";
for (var i = 0; i < entries.length; i++) {
var calendarEntry = entries[i];
var calendarTitle =
calendarEntry.getTitle().getText();
XML+="<cal>"+calendarTitle+"</cal>";
}
XML+="</root>";
alert("the calendar data:"+ XML ) ;
}
var handleErrorCalendar = function(error) {
alert(error);
}
calendarService.getAllCalendarsFeed(feedUriCalendar,
callbackCalendar, handleErrorCalendar);
}
On Aug 5, 3:55 pm, Jeevan Dongre <[email protected]> wrote:
> if u are using the js api, then the next parameter will be the same
> page itself, one best thing u can follow is make a iFrame or ask user
> to authenticate first (may be change the UX?UI) and then access the
> app
>
> On Aug 5, 12:16 pm, Sudha <[email protected]> wrote:
>
>
>
>
>
>
>
> > I tried accessing my page using http ..but again I received the same error
> > message saying like
>
> > *http://force.comsitehas not been registered.*
--
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://code.google.com/apis/calendar/community/forum.html