That's the path I was looking for and definitely gets me closer, thanks. Did you see it through the process with a URL type gadget for testing? After including the path to the script, I no longer receive a "gadgets.window is undefined", as expected, however, the gadgets.window.adjustHeight() function also does not appear to do anything. In FF, no errors show in the error console, but in IE, I receive a 'console is undefined' error message.
I tried surrounding the call to the adjust function around the onload hander event, ie: gadgets.util.registerOnLoadHandler(adjust()); function adjust() gadgets.window.adjustHeight(); In order to make sure the page has fully loaded prior to trying to adjust. Still no love. John On Apr 10, 10:13 am, String <[email protected]> wrote: > On Apr 10, 10:35 am, John <[email protected]> wrote: > > > I'm already doing this. that's not the issue. The issue is GMAIL > > specific, and when the .js libraries are passed in via the URL, there > > doesn't appear to be an absolute path that exists in order to include > > them back into the page via the <script> tag. > > I see. No, that wasn't entirely clear from your first message. > > After looking into this with one of my few type="url" gadgets, I > understand the problem. As I see it, the issue isn't so much that the > absolute path doesn't exist; it's more that the "libs" URL parameter > is completely different than it is on iGoogle. IOW, the code I linked > to earlier is expecting a differently-formatted URL parameter than > what you get in a gadget on Gmail. > > Digging into it, though, I think I see a solution. Rather than > splitting the libs parameter and including a bunch of different files > (as the iGoogle code does), it looks like you can just prepend > "http://www.gmodules.com/gadgets/" to the libs parameter you get from Gmail, > So in your case, the URL you need to include is: > > http://www.gmodules.com/gadgets/js/dynamic-height:maximize.js > > Give that a try - it looks to me like like it works. > > String --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
