On Tue, Sep 9, 2008 at 12:09 AM, ducks <[EMAIL PROTECTED]> wrote: > > 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()); > } >
Hi ducks, I was able to run your code without incident on both Firefox and on IE 6. Have you tried running this on any other systems? -- 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 -~----------~----~----~----~------~----~------~--~---
