Get your own customer support community
 

Dynamic resizing issue with iGoogle

Hi,
I'm looking to use the dynamic resizing function on a html/js widget and I'm having a problem when it's placed into iGoogle, where only the top 20-30pixels are showing.

I thought that it might be the widget, so in widgetbox's edit widget area, i placed the following code into the 'widget code' editor at the bottom - the idea being that it's just a simple div.

<!--<script src="http://widgetserver.com/syndication/publisher/Main.js"></script>
<div style='height:620px;width:200px;background-color:green;'>
abc
</div>
<script type="text/JavaScript">
setTimeout(function(){
try
{
WIDGETBOX.publisher.Main.setWidgetLoaded();
}
catch(e)
{
alert(e.message);
}
alert("run");},5000);
</script>-->

I've tried it with and without the script, which is based on your documentation, but still I get the same problem. When the widget is previewed in your site it's fine - it's only with iGoogle.

The settimeout function seems to be running ok, in that the final alert pops up and the catch isn't firing.

The attached images show the widget in your environment and iGoogle's.





If you can help me get this simple code working then that would be greatly appreciated, as I can then look to get the actual widget up and running.

Many thanks,
Darren.
 
sad I’m confused
Inappropriate?
1 person has this problem

The company has acknowledged this problem.


User_default_medium