[orkut-developer] Re: dynamically add tabs

2008-04-02 Thread [EMAIL PROTECTED]
I am not too sure i understood your question... But this link should solve all the problems.. http://code.google.com/apis/opensocial/docs/0.7/reference/gadgets.TabSet.html In the example above, I am creating the tabs dynamically.. If you want to do it on click of an element, write the code in th

[orkut-developer] Re: dynamically add tabs

2008-04-01 Thread Marc Wessely
yes i have because i want add tabs on the fly but in a certain position means behind a tab that allready existing. and then after some time i want the user to close it and remove the tab. 2008/4/1, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > > > Hey > > I had the same problem, here is a sample code t

[orkut-developer] Re: dynamically add tabs

2008-04-01 Thread [EMAIL PROTECTED]
Hey I had the same problem, here is a sample code that might help you: in your xml file: tabSet = new gadgets.TabSet(null, null, document.getElementById("tabContainer")); var o = tabSet.addTab("Tab Header 1", { contentContainer: _gel("TabBodyId"),

[orkut-developer] Re: dynamically add tabs

2008-03-31 Thread Jason
Hi marc. With the new gadgets namespace, the original tab library has been split into two parts: gadgets.Tab and gadgets.TabSet. The latter has functions for adding and removing tabs at runtime: http://code.google.com/apis/opensocial/docs/0.7/reference/gadgets.TabSet.html Cheers! - Jason On Mar