Dears,

I trying to play with the preferences of the gadget.
I'm using a brand new version of shindig I just checked out from SVN.

When trying to run a simple exemple, I have a strange behaviour, if I 
copy/paste a gadget XML in my webapp, the pref doesn't shows up when clicking 
on edit on my widget. But when accessing directly the gadget XML from the 
remote site (google one in my test) it works!

I also try to create my own gadget with preferences, and a click on the 
settings link doesn't shows up the settings edition ...

Here a sample code to explain what I did, both horoscope.xml are the same. The 
gadget0 edit doesn't work, but the gadget1 edit works!
var specUrl0 = 'http://localhost:9080/TESWEBAPP/gallery/gadget/horoscope.xml';
var specUrl1 = 'http://www.google.com/ig/modules/horoscope.xml';

function renderGadgets() {
  var gadget0 = gadgets.container.createGadget({specUrl: specUrl0});
  gadget0.setServerBase("http://localhost:9080/shindig/gadgets/";);
  var gadget1 = gadgets.container.createGadget({specUrl: specUrl1});
  gadget1.setServerBase("http://localhost:9080/shindig/gadgets/";);

  gadgets.container.addGadget(gadget0);
  gadgets.container.addGadget(gadget1);
  gadgets.container.layoutManager.setGadgetChromeIds(['gadget-chrome-x', 
'gadget-chrome-y']);

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


Regards,

Loïc



**** DISCLAIMER ****
http://www.belgacom.be/maildisclaimer

Reply via email to