Hi! I have a number of gadgets on a page that I render basically like this:
CommonContainer.preloadGadgets(...);
var params = {};
params[osapi.container.RenderParam.MODULE_ID] = spec.modId;
var gadgetSite = CommonContainer.newGadgetSite(el);
var gadgetURL = spec.url;
CommonContainer.navigateGadget(gadgetSite, gadgetURL, {}, params);
"spec" is an object containing meta-information for a gadget (like URL
and module-ID).
Rendering works, and the correct moduleId is passed to the server, but
when I query the moduleId afterwards via gadgetSite.getModuleId() I
always get "0" as the result.
What am I missing here?
Or what is the recommended way to tell the common container the ModuleId
for a gadget?
tia,
- martin
signature.asc
Description: PGP signature
