Hi Matt,

Yes, this is as I had guessed, your gadget is being displayed via the
new renderer (which also supports gadgets.*) and the legacy library
that supports _IG_ calls and helper functions like _toggle() appear to
behave slightly differently.

In any case, I agree that the legacy doc's description does not
conform to what you're seeing, and that this is a bug. I'll report it
internally and see what I can do. As you suspected, you shouldn't
modify your code, because the majority of users seeing the older code
path will have a _toggle function that works according to the docs.

Thanks,
Dan

On Jun 4, 12:10 pm, Matt Kruse <[email protected]> wrote:
> I use this on a lot of my gadgets, but here's one example:
>
> http://97.ig.gmodules.com/gadgets/ifr?view=home&url=http://www.Javasc...
>
> http://bit.ly/qcpWN
>
> Since this worked up until a day or two ago, I think the code
> definitely changed, either in _toggle() or _gel(), since they are both
> very simple functions and wouldn't just mysteriously stop working.
>
> Matt
>
> On Jun 4, 12:07 pm, "Dan (Google)" <[email protected]> wrote:
>
> > Hi Matt,
>
> > Can you grab the iframe URL of your gadget when this is happening?
>
> > Thanks,
> > Dan
>
> > On Jun 4, 7:31 am, "Matt (Guru)" <[email protected]> wrote:
>
> > > The docs athttp://code.google.com/apis/gadgets/docs/legacy/reference.html
> > > say this:
>
> > > _toggle(element)
> > > Toggles between showing and hiding an HTML element.
>
> > > But the code internally does this:
>
> > > function _toggle(A) {
> > >     A = _gel(A);
> > >     ...
>
> > > In several of my gadgets, I am passing an element reference to _toggle
> > > () and it recently stopped working. It looks like it now wants just
> > > the id (string) because _gel() just does:
>
> > > function _gel(a) {
> > >    return document.getElementById(a);
>
> > > }
>
> > > Broken functionality! Why?
>
> > > Either _toggle() should change back to the way it worked before or _gel
> > > () should only call document.getElementById() if it is passed a
> > > string.
>
> > > I'm afraid to update my gadgets to only pass an id to _toggle()
> > > because maybe this is a bug and will be reverted!
>
> > > Matt Kruse
--~--~---------~--~----~------------~-------~--~----~
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