Hi Mak,
Your code looks correct. That error is caused by a bug in Shindig, which
has already been fixed:
http://svn.apache.org/viewvc?view=rev&revision=619579
Orkut is currently running Shindig, but doesn't have this patch applied,
and will probably not be updated until early next week. It appears that
this error only happens for some Firefox users, which makes it really hard
to text possible fixes. At least one developer has said that that enabling
Firebug seemed to fix this problem. Other people have had success testing
in Safari for the time being.
If I can figure out a workaround this weekend or if the sandbox is
updated, I'll post it here.
~Arne
On Feb 8, 2008 2:36 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Hi Jason, Arne
>
> when calling makeRequest I get the following error in firefox error
> console..
>
> Error: [Exception... "Not enough arguments" nsresult: "0x80570001
> (NS_ERROR_XPC_NOT_ENOUGH_ARGS)" location: "JS frame ::
>
> it occurs on the line : xhr.send() in the makeRequest function
> definition.
>
> my code
>
> var params = {};
> params[gadgets.io.RequestParameters.CONTENT_TYPE] =
> gadgets.io.ContentType.DOM;
> var url = "http://www.games2win.com/orkut/getscores_new.asp";
> gadgets.io.makeRequest(url, function(response)
> {alert(response.data);}, params);
>
> Am I missing any mandatory arguments???
>
> Awaiting your reply
>
> Regards,
> Mak
>
>
>
> On Feb 9, 3:17 am, "Arne Roomann-Kurrik" <[EMAIL PROTECTED]>
> wrote:
> > Hi Nikhil,
> >
> > Sorry, that should be response.data.childNodes.
> >
> > You may be interested in installing Firebug (
> https://addons.mozilla.org/en-US/firefox/addon/1843) With Firebug
> > installed you can just do console.log() on an object to see what
> properties
> > are available.
> >
> > ~Arne
> >
> > On Feb 8, 2008 12:13 PM, :nikhil_gupte <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> > > Hi Jason,
> >
> > > That didn't work... I get:
> > > response.data.children has no properties
> >
> > > On Feb 8, 5:31 am, Jason <[EMAIL PROTECTED]> wrote:
> > > > Hi!
> >
> > > > This Wiki page has several gadgets.io.makeRequest() samples that are
> > > > fully compatible with version 0.7 of the OpenSocial API
> specification:
> >
> > > >http://code.google.com/p/opensocial-resources/wiki/GadgetsMakeRequest
> >
> > > > It looks like you need to use the response's data property. Check to
> > > > see if this works:
> >
> > > > alert(response.data.children.length);
> >
> > > > Cheers!
> > > > - Jason
> >
> > > > On Feb 7, 4:11 am, ":nikhil_gupte" <[EMAIL PROTECTED]> wrote:
> >
> > > > > That is for 0.6. I need to use 0.7 i.e. with
> gadgets.io.makeRequest
> >
> > > > > On Feb 7, 4:18 pm, "Tiago Takamoto" <[EMAIL PROTECTED]>
> wrote:
> >
> > > > > > Hi,
> >
> > > > > > I don't know the difference between gadgets.io.makeRequest and
> > > > > > gadgets,makeRequest but
> > > > > > the example here:
> > >http://code.google.com/apis/opensocial/docs/0.6/devguide.html#XML
> > > > > > works fine to me.
> >
> > > > > > Hope that I help.
> >
> > > > > > Takamoto
> >
> > > > > > On Feb 7, 2008 6:28 AM, :nikhil_gupte <[EMAIL PROTECTED]>
> wrote:
> >
> > > > > > > Ive' tried:
> > > > > > > gadgets.io.makeRequest(url, function(response)
> > > > > > > {doSomething(response);}, {'method' :
> gadgets.io.MethodType.GET,
> > > > > > > 'contentType' : gadgets.io.ContentType.DOM});
> >
> > > > > > > but It doesn't seem to return XML since
> response.firstChildreturns
> > > > > > > undefined.
> > > > > > > response.data/text/errors is available, but then how does one
> > > parse
> > > > > > > xml using them? I don't think response.data is treated as a
> DOM.
> >
> > > > > > --
> > > > > > Tiago Takamoto
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Orkut Developer Forum" 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/opensocial-orkut?hl=en
-~----------~----~----~----~------~----~------~--~---