Hi Arun,

I took a quick stab at rendering two identical dynamic height gadgets
one after the other. Seems to work fine here on both IE7 and Firefox.

What I did: Copied container/sample6.html as container/sample6a.html,
and added the code for a second identical gadget (both are type=html).

below is my container/sample6a.html showing the above:
(you'll need to search/replace the setServerBase url params to point
to your local Shindig server)

hope this helps
Michael

----------------------------------------------------------
<html>
<head>
<title>Sample: dynamic-height support</title>
<!-- default container look and feel -->
<link rel="stylesheet" href="gadgets.css">
<script type="text/javascript" src="json.js"></script>
<script type="text/javascript" src="ifpc.js"></script>
<script type="text/javascript" src="cookies.js"></script>
<script type="text/javascript" src="gadgets.js"></script>
<script type="text/javascript">
var specUrl0 = 'http://www.google.com/ig/modules/aue07otr.xml';
var specUrl1 = 'http://www.google.com/ig/modules/aue07otr.xml';

function init() {
  gadgets.container.layoutManager =
      new gadgets.FloatLeftLayoutManager('gadget-parent');

  gadgets.container.setParentUrl('ifpc_relay.html');
  var gadget0 = gadgets.container.createGadget({specUrl: specUrl0});
  var gadget1 = gadgets.container.createGadget({specUrl: specUrl1});

  gadget0.setServerBase('http://192.168.200.128:8080/gadgets/');
  gadget1.setServerBase('http://192.168.200.128:8080/gadgets/');

  gadgets.container.addGadget(gadget0);
  gadgets.container.addGadget(gadget1);
};

function renderGadgets() {
  gadgets.container.renderGadgets();
};
</script>

</head>
<body onLoad="init();renderGadgets()">
  <h2>Sample: dynamic-height support</h2>
  <div>(Requires a Shindig server running at http://192.168.200.128:8080)</div>
  <div id="gadget-parent" class="gadgets-gadget-parent"></div>
</body>
</html>
----------------------------------------------------

------------
n IE 7, dynamic-height working but it is talking some time to change
height. Some times permission denied error is getting displayed.

On Feb 4, 2008 3:56 PM, Arun Kumar <[EMAIL PROTECTED]> wrote:

> In IE7 also I'm getting permission denied error. Why I'm getting these
> errors?
>
>
> On Feb 4, 2008 3:39 PM, Arun Kumar <[EMAIL PROTECTED]>
> wrote:
>
> > I'm getting this *uncaught exception: Permission denied to get property
> > Window.setTimeout *error for the second gadget onwards and hence
> > dynamic-height not working.
> >
> >
> > On Feb 4, 2008 3:21 PM, Arun Kumar <[EMAIL PROTECTED]>
> > wrote:
> >
> > > I'm using dynamic-height property and I'm getting this error:
> > > *
> > > uncaught exception: Permission denied to get property
> > > Window.setTimeout
> > >
> > > *One more problem is, I'm creating two gadgets. Each one's specUrl is
> > > same, I'm rendering each gadget one after one. dynamic-height property is
> > > working for the first gadget and it is not working for the second gadget.
> > > parentUrl_ and server base are same for both the gadgets. Why 
> > > dynamic-height
> > > property is not working with other gadgets other than first gadget?*
> > > *
> >
> >
> >
>

Reply via email to