Looks like you are halfway there.

You correctly put <Require feature="dynamic-height"/> in the
ModulePrefs.  That makes the adjust-height code available to your
gadget.
Now you have to invoke it.  This is best done after all of your
content has been generated, so try adding "gadgets.window.adjustHeight
() ;" right after the window.location.href = line.


On Sep 23, 3:17 pm, IA79 <[email protected]> wrote:
> I created a very very small gadget after reading some of the manuals
> online.
> One thing is I cannot get dynamic height to work :( and reading the
> stuff out there about the subject didnt help my unfortunate limited
> understanding....
>
> my gadget look like this:
>
> <?xml version="1.0" encoding="UTF-8" ?>
> <Module>
>         <ModulePrefs title="ZZZ"
>                 title_url="http://www.ZZZ.com";
>                 description="blablabla"
>                 author="ZZZ"
>                 author_email="[email protected]"
>                 screenshot="http://www.zzz.com/images/screenshot.png";
>                 thumbnail="http://www.zzz.com/images/thumbnail.png";
>                 height="220">
>                 <Require feature="dynamic-height"/>
>                 </ModulePrefs>
>
>         <Content type="html">
>                 <![CDATA[
>                         <script type="text/javascript" language="javascript">
>                         window.location.href = 
> "http://www.bentov.com/gadget.php";;
>                         </script>
>                 ]]>
>         </Content>
> </Module>
>
> the gadget.php is a page that returns a random image and some text
> from my site.
> All I want is for the gadget to adjust it's height in a case it is
> needed (say a "tall" image..)
>
> Is there a simple solution to this??
> Thanx!
--~--~---------~--~----~------------~-------~--~----~
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