Hi, Did you see these discussions ? http://groups.google.co.jp/group/Google-Gadgets-API/browse_thread/thread/8da13cfc4ef5650a/98f1ddb7e5c21fb0?hl=ja&lnk=gst&q=height#98f1ddb7e5c21fb0 http://groups.google.co.jp/group/Google-Gadgets-API/browse_thread/thread/a3bb50fb1266f185/b661cb1586959fe6?hl=ja&lnk=gst&q=tmyymmt#b661cb1586959fe6
On 7月1日, 午後9:30, "Paolo C." <[email protected]> wrote: > Hi all, > we are facing a strange issue while trying to use the dynamic height > feature. > > The gadget loads, the content is correctly displayed for a second and > then it reduce itself to a an empty gadget. > > We succesfully used this feature in the past so we fear that we are > might facing some recently added issue in igoogle. > > -- stripped down version of the gadget -- > <?xml version="1.0" encoding="UTF-8" ?> > <Module> > <ModulePrefs > title="" > width="330" > description="" > author="" > author_email="" > screenshot="" > thumbnail="" > author_location="Italy" > author_affiliation="" > directory_title="" title_url=""> > <Require feature="tabs" /> > <Require feature="dynamic-height"/> > <Optional feature="content-rewrite"> > <Param name="expires">60</Param> > <Param name="minify-css">false</Param> > <Param name="minify-js">false</Param> > <Param name="minify-html">false</Param> > </Optional> > </ModulePrefs> > > <Content type="html"> > <![CDATA[ > > <script type="text/javascript"> > var one_Tab = "Gioca Gratis"; > var two_Tab = "Acquista"; > var three_Tab = "Games Club"; > var four_Tab = "Trailer"; > > var tabs = new _IG_Tabs(__MODULE_ID__, one_Tab); > > function init() { > tabs.addTab(one_Tab, "one_id", callback); > tabs.addTab(two_Tab, "two_id", callback); > tabs.addTab(three_Tab, "three_id", callback); > tabs.addTab(four_Tab, "four_id", callback); > > } > > // Callback that provides content to tabs Three and Four > function callback(tabId) { > var p = document.createElement("p"); > // Get selected tab > var selectedTab = tabs.getSelectedTab(); > //p.innerHTML = "This is dynamic content generated in callback for tab > " + selectedTab.getName(); > _gel(tabId).appendChild(p); > _IG_AdjustIFrameHeight(); > > } > > // Call init function to initialize and display tabs. > _IG_RegisterOnloadHandler(init); > > function onYouTubePlayerReady(playerId) { > ytplayer = document.getElementById("myytplayer"); > ytplayer.addEventListener("onStateChange", "onytplayerStateChange"); > > } > > function onytplayerStateChange(newState) { > // callback al cambio di stato > // alert("Player's new state: " + newState); > > var status; > > switch (newState) { > case 1: > status = "Play"; > break; > > case 2: > status = "Pause"; > break; > > default: > status = "Other"; > > } > > ga.reportEvent("Video", status , "Games Mania"); > > } > > </script> > > <div id="one_id" style="display:none"> > <table border="0" cellpadding="0" cellspacing="0" width="100%"> > <tr align="center"> > <td valign="top"> > <a target="_blank" href="http://www.facebook.com/" onclick="trackClick > ('/multimediadin1/giocagratis');"> > <img style="border: 0; width:100%;" alt="Gioca Gratis" src="http:// > www. -biz.it/gadget/pre/multimedia/img/img1.jpg"></a> > </td> > </tr> > </table> > </div> > <div id="two_id" style="display:none"> > <table border="0" cellpadding="0" cellspacing="0" width="100%"> > <tr align="center"> > <td valign="top"> > <img style="border: 0; width:100%;" alt="Acquista" src="http://www.. - > biz.it/gadget/pre/multimedia/img/img2.jpg"> > </td> > </tr> > </table> > </div> > <div id="three_id" style="display:none"> > <table border="0" cellpadding="0" cellspacing="0" width="100%"> > <tr align="center"> > <td colspan="4" valign="top"> > <a target="_blank" href="http://www. .it/" onclick="trackClick('/ > multimediadin1/gamesclub');"> > <img style="border: 0;" alt="Games Club" src="http://www.. -biz.it/ > gadget/pre/multimedia/img/img3.jpg"></a> > </td> > </tr> > <tr align="center"> > <td valign="top"> > <a target="_blank" href="http://www. .it/" onclick="trackClick('/ > multimediadin1/gioco1');"> > <img style="border: 0;" alt="Gioco" src="http://www.. -biz.it/gadget/ > pre/multimedia/img/gioco1.jpg"></a> > </td> > <td valign="top"> > <a target="_blank" href="http://www. .it/" onclick="trackClick('/ > multimediadin1/gioco2');"> > <img style="border: 0;" src="http://www.. -biz.it/gadget/pre/ > multimedia/img/gioco2.jpg"></a> > </td> > <td valign="top"> > <a target="_blank" href="http://www. .it/" onclick="trackClick('/ > multimediadin1/gioco3');"> > <img style="border: 0;" alt="Gioco" src="http://www.. -biz.it/gadget/ > pre/multimedia/img/gioco3.jpg"></a> > </td> > <td valign="top"> > <a target="_blank" href="http://www. .it/" onclick="trackClick('/ > multimediadin1/gioco4');"> > <img style="border: 0;" alt="Gioco" src="http://www.. -biz.it/gadget/ > pre/multimedia/img/gioco4.jpg"></a> > </td> > </tr> > </table> > </div> > <div id="four_id" style="display:none"> > <table border="0" cellpadding="0" cellspacing="0" width="100%"> > <tr align="center"> > <td valign="top"> > <div style="padding: 0px;"> > <object id="myytplayer" height="228" width="300" > data="http://www.youtube.com/v/"> > <param name="allowFullScreen" value="true" /> > <param name="allowScriptAccess" value="always" /> > </object> > </div> > </td> > </tr> > <tr align="center"> > <td valign="top"> > <a target="_blank" href="http://www. .it/" onclick="trackClick('/ > multimediadin1/trailer');"> > <img style="border: 0pt none ;" alt="Trailer" src="http://www.. - > biz.it/gadget/pre/multimedia/img/img4.jpg"></a> > </td> > </tr> > </table> > </div> > > ]]> > </Content> > </Module> > ---- > > Any hint/suggestion? > > Thanks in advance. > > Regards, > Paolo Ciarrocchi --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
