I've seen this problem in IE before. We should probably extend the guard on
paramData to check for nullness as well as emptiness.

On Mon, Nov 3, 2008 at 8:29 AM, Citron, David <[EMAIL PROTECTED]> wrote:

> Hi!
>
> I'm encountering errors when attempting to load even the
> SocialHelloWorld gadget in Internet Explorer. By simply loading the
> gadget in the samplecontainer and then clicking "reset all" I am getting
> the following error:
>
>  A Runtime Error has occurred.
>  Do you wish to Debug?
>
>  Line: 1811
>  Error: The parameter is incorrect
>
> If I open the debugger, it points to the following line in
> gadgets.io.makeXhrRequest:
>
>  if (paramData != null) {
>    xhr.setRequestHeader('Content-Type', opt_contentType || 'app...
> --> xhr.send(paramData); <--
>    } else {
>      xhr.send(null);
>    }
>  }
>
> The debugger shows "paramData" to be an empty object, which should be
> fine, correct?
>
> The calling stack seems to be originating at setEvilBit() in
> samplecontainer.js -- this is a request with no POST parameters, so
> samplecontainer.sendRequestToServer() is setting the POST_DATA to {}
>
> Is anybody else seeing this kind of problem in IE?
>
> Of course everything works fine in FF--not even any JS warnings.
>
> Thanks,
> Dave
>
>

Reply via email to