You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@shindig.apache.org by Justin Wyllie <ju...@hotmail.co.uk> on 2010/05/24 20:23:45 UTC

FW: Rendering title



From: justinwyllie@hotmail.co.uk
To: user-subscribe@shindig.apache.org
Subject: Rendering title
Date: Mon, 24 May 2010 19:23:07 +0100








Hi

Using this code to render a gadget:

var specUrl0 = 'http://www.google.com/ig/modules/test_settitle_html.xml';

function init() {
  shindig.container.layoutManager =
      new shindig.FloatLeftLayoutManager('gadget-parent');
  var gadget = shindig.container.createGadget({specUrl: specUrl0});
  gadget.setServerBase('http://198.66.163.13:85/gadgets/ifr');
  shindig.container.addGadget(gadget);
  renderGadgets();
};

function renderGadgets() {
  shindig.container.renderGadgets();
};

And that gadget which has a call to a set title method (I hope not igoogle specific..) I can get a title set nicely.

I'm trying to render the same gadget via an iframe.  <iframe id="widget_id3_gadget" class="gadget" scrolling="yes"  width="100%" frameborder="0" src="http://mydomain/gadgets/ifr?url=http://www.google.com/ig/modules/test_settitle_html.xml&bpc=1&view=default&title=test&parent=http://localhost#rpctoken=123456" name="widget_id2_gadget"></iframe>

But it won't render the title. Is it just a simple matter of building an html structure around the iframe to match the one built by the renderGadgets call? Has anyone done this - get a gadet to set a title on the page when rendered by the iframe technqiue?

Thanks

Justin 
               
 		 	   		  
Get a free e-mail account with Hotmail. Sign-up now. 		 	   		  
_________________________________________________________________
http://clk.atdmt.com/UKM/go/197222280/direct/01/
We want to hear all your funny, exciting and crazy Hotmail stories. Tell us now