You are AWESOME! Thank you so much! I haven't tested on other browsers yet, but it does work great in Firefox...
Thanks again. On 29 Jan, 21:57, "Arne Roomann-Kurrik (Google)" <[email protected]> wrote: > Normally you wouldn't be able to do this, but the scrollIntoView > function isn't affected by the parent/child iframe limitation. Try > using: > > document.getElementById("<id of the element>").scrollIntoView(); > > There's an optional argument that lets you align the element with the > top or the bottom of your > screen.https://developer.mozilla.org/en/DOM/element.scrollIntoViewhas more > information. > > Hope this helps, > ~Arne > > On Jan 29, 1:33 pm, "Bonstio (Guru)" <[email protected]> wrote: > > > Someone will correct me if I'm wrong but I'm pretty sure you cannot > > reach outside of the gadget's iframe so scrolling the parent page will > > not be possible using javascript. > > > It sounds like a gadget this big would be a good candidate for a > > little UI refactoring. People prefer not to have to scroll to see a > > gadget's contents in its entirety. Is there anyone you could consider > > using perhaps tabs or some other mechanism for showing the content? > > > HTH > > > On Jan 29, 8:18 pm, MKoistinen <[email protected]> wrote: > > > > Hi all, > > > > I have a rather long gadget and the user will often scroll his screen > > > down to get to the bottom of it. I need a way to return the user to > > > the top which I can place in a tab callback function. Is this > > > possible? > > > > Just to be clear, I'm not talking about scrolling the content within > > > the gadget's iFrame, but rather, scroll the page that contains the > > > gadget. > > > > Thanks in advance! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
