Hi,

I am not sure if this is the cause for this exception but I do know
that your browser is confined to the same-origin policy which means
that you cannot make XMLHttpRequest call to a foreign domain (outside
of your own hosting server).  The fact that it worked on IE, perhaps
you have disabled the security setting to prevent.

Hope that helps,
Austin

On Wed, Apr 16, 2008 at 7:43 PM, tjfdud <[EMAIL PROTECTED]> wrote:
>
>  Hello
>
>  I can get the Auth value OK by requesting to 
> https://www.google.com/accounts/ClientLogin
>  and using the value, I am trying to submit the calendar url as shown
>  below
>
>  var request = new XMLHttpRequest();
>  request.open(GET, "http://www.google.com/calendar/feeds/default/
>  private/composite", false);
>  if (sAuth) {
>         request.setRequestHeader("Authorization", "GoogleLogin
>  auth="+sAuth);
>         //request.setRequestHeader("Content-Type", "text/plain");
>  }
>
>  But this generates an exception below in Firefox and it won't make the
>  request at all.
>
>  uncaught exception: [Exception... "Component returned failure code:
>  0x80070057 (NS_ERROR_ILLEGAL_VALUE)
>  [nsIXMLHttpRequest.setRequestHeader]" nsresult: "0x80070057
>  (NS_ERROR_ILLEGAL_VALUE)" location: "JS frame :: 
> http://mycompany.com/googletest.html
>  :: getxhr :: line 24" data: no]
>
>  Same code works in IE. Anybody tried this and see it working? I
>  appreciate any feedback/comment.
>
>  >
>

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