When you run Firebug on iGoogle, you are running it on the container page,
not in the IFRAME that contains your gadget, so it does not have the same
global object as your gadget IFRAME.

One way to run Firebug on your gadget code is to right click inside your
gadget and select This Frame and then any of:

Show Only This Frame
Open Frame in New Window
Open Frame in New Tab

Then you'll have your gadget code running in its own browser window or tab,
and when you use Firebug you will see gadgets.io and the other objects you
expect.

-Mike

On Wed, May 5, 2010 at 3:57 PM, celoserpa <[email protected]> wrote:

> Hello list,
>
> I haven't dug up deeply into the Gadgets engine nor I plan to right now,
> and something intrigued me. If I put this in a <javascript> element inside
> the gadget's content:
>
>             alert(gadgets.io.RequestParameters.AUTHORIZATION);
>
> I get the alert with AUTHORIZATION when opening iGoogle and the gadget
> loads.
>
> However, if, while on iGoogle, I open Firebug and on the console I type:
>
> >>> console.debug(gadgets.io.RequestParameters.AUTHORIZATION);
>
> I get the following result:
> TypeError: gadgets.io is undefined { message="gadgets.io is undefined",
> more...}
>
> Now, I'm puzzled on how iGoogle makes gadgets.io available for the gadget
> only, could someone enlightenme?
>
> Thanks,
>
> Marcelo.
>
>  --
> You received this message because you are subscribed to the Google Groups
> "iGoogle Developer Forum" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-gadgets-api%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/Google-Gadgets-API?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"iGoogle 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/Google-Gadgets-API?hl=en.

Reply via email to