You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@shindig.apache.org by Veerendra N <Ve...@hcl.com> on 2011/12/06 14:40:37 UTC

Shindig API & Remove functionality

Hello ,

The style issue I could sort out through the examples provided, Now I made some progress and created a generic function, to which I pass the gadget object value and gadget renders properly. Here is the function below

my.create_element_gadget = function(element){
      var el = element
      //need some code to clear or remove earlier gadget present on the page
      var gadget = shindig.container.createGadget(
                                                {
                                                      specUrl: my.gadgetSpecUrls[el]
                                                });
      shindig.container.addGadget(gadget);
     shindig.container.renderGadget(gadget);

};


This function works fine, but before creating gadget I want to clear the previous gadget that was present in that particular location


Thank You
Veerendra




________________________________
::DISCLAIMER::
-----------------------------------------------------------------------------------------------------------------------

The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only.
It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in
this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of
this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have
received this email in error please delete it and notify the sender immediately. Before opening any mail and
attachments please check them for viruses and defect.

-----------------------------------------------------------------------------------------------------------------------