Hi everyone.
I want to get events from public calendar without authentication.

I do set my calendar public explicitly.
and I can get a feed from IE6 directly use the feedUrl to IE6 Address
space.

but I went to error routine and got error msg in my program.
"Request via script load timed out. Possible causes: feed URL is
incorrect; feed requires authentication"

my prog is below.

what's the problem?
I can get feed in IE6 but get error in JS.

plz help. thx.
============================================================
// this code <script type="text/javascript" src="http://www.google.com/
jsapi"></script>
// is in html doc
// and below is js code.

google.load("gdata", "1");
google.setOnLoadCallback(gcOnLoad);

var myCalendar;
var feedUrl = "http://www.google.com/calendar/feeds/[EMAIL PROTECTED]/
public/full";

function gcOnLoad() {
//      alert("gcOnLoad()");

//      google.gdata.client.init(handleInitError);
        setupMyService();

        myCalendar.getEventsFeed(feedUrl, handleMyFeed, handleError);

        alert("End");
}

function setupMyService() {
        alert("setupMyservice()");

        myCalendar = new
google.gdata.calendar.CalendarService('MyFirstGCalendar');
}

function handleInitError(stdErrObj) {
        alert("Browser support error");
}

function handleError(e) {
  alert("There was an error!");
  alert(e.cause ? e.cause.statusText : e.message);
}

function handleMyFeed(myResultsFeedRoot) {
        alert("This feed's title is: " +
myResultsFeedRoot.feed.getTitle().getText());
}

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to