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.JavascriptToolbox.com/gadget/superdigg/superdigg.xml&nocache=0&up_title=Digg&up_url=http://services.digg.com&up_endpoint=/stories/popular&up_appkey=http://igoogle.com&up_num=50&up_newwindow=1&up_fontsize=85%25&up_favicon=1&up_refresh=15&up_lasturl=http://news.bbc.co.uk/1/hi/entertainment/8083479.stm&up_tpl=%3Cdiv+class%3Ditem%3E%3Ca+href%3D%22%25link%25%22+class%3D%22%25classname%25%22+target%3D%22%25target%25%22+oncontextmenu%3D%22_toggle(this.nextSibling)%3Bresize()%3Breturn+false%22%3E%25bullet%25%25title%25%3C/a%3E%3Cdiv+style%3D%22display:none%22%3E%25thumbnail%25%3Cb%3EURL%3C/b%3E:%25link%25%3Cbr%3E%3Cb%3EDesc%3C/b%3E:%25description%25%3Cbr%3E%3Cb%3E%3Ca+href%3D%22%25href%25%22+target%3D%22blank%22%3EComments:%3C/a%3E%3C/b%3E+%25comments%25%3C/div%3E%3C/div%3E&up_lastmsg=1&up_today=2009-6-4&lang=en&country=us&.lang=en&.country=us&synd=ig&mid=97&ifpctok=778994388236514734&exp_split_js=1&exp_rpc_js=1&exp_track_js=1&exp_ids=17259,300403,300411&parent=http://www.google.com&refresh=3600&libs=core:core.io:core.iglegacy&extern_js=/extern_js/f/CgJlbhICdXMrMAo4ACwrMBI4ACwrMBM4ACw/2f02v-4a_uU.js

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