Thanks for that, my answers are below:
Rich

> A few issues:
> 0) You are calling the <script src="../jsapi.js">, but not actually
> using it for talking to the server. That's a bit confusing to me. It
> renders a bunch of your code moot.

Are you sure?  I'm creating google.gdata.calendar.CalendarService
objects, and using all kinds of API functions and objects, surely this
is from that file?

> 1) If you are writing the XML yourself, you need the correct prefix =
> '<?xml version="1.0" encoding="UTF-8"?>';

I've tried with that as well.  No luck...

> 2) GData is picky about the root being "<atom:entry>", and NOT
> "<entry>"

Tried that too.  The example uses <entry> and the namespace
declaration suggests that the "atom" prefix is unnecessary.  But I
thought I'd try anyway, and it didn't work.

> 3) Your onClose: function() {fetchData(url,pCallBack,pData,pMethod);}
> is missing the last arg. I suspect that it should be "onClose: function
> () {fetchData(url,pCallBack,pData,pMethod, pHeaders);}"

Thanks for that, I've added it now.  That code is only called when
initially authenticating, so isn't the problem, but would certainly
have caused problems later!

> 4) I don't think these are needed [though I'm not sure if they
> actually hurt]
>  params[gadgets.io.RequestParameters.NUM_ENTRIES] = 100;
>  params[gadgets.io.RequestParameters.GET_SUMMARIES] = true;

I've tried with and without all combinations of params that I could,
to try to get it to work.  Removing these didn't help.  They are
necessary for something else I'm doing in code though.

> 5) If you don't use the jsapi libs, then you may want to double check
> the line here for redirects "else if (response.data) {"

Not sure I understand what you're suggesting here.  This does what I
want it to every time I've stepped through it so far.  What do you
think it's doing that it shouldn't? (or isn't that it should?)

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