Hi, I dinamycally created some tabpanel using the example and the content of each panel is coming from dinamic page.
Now I would like to change the content of the same tab clicking on an item in it.
ex.
the tab1 content is coming from test.asp which is a recordset list exposed in a table.
I would like to click on one record and change the tab1 content to 'test2.asp?id=1'
how can I make this?
I forgot that my tabpanel look like that, supposing I want to replace tab2 content with
test2.asp?id=1 clicking on an item of categorie.asp, how can i do?
________________________________________
var TabsExample = {
init : function(){
var jtabs = new YAHOO.ext.TabPanel('jtabs');
var tab0 = jtabs.addTab('campi', "campi");
tab0.setUrl('campi.asp', null, true);
var tab1 = jtabs.addTab('carpenterie', "carpenterie");
tab1.setUrl('carpenterie.asp', null, true);
var tab2 = jtabs.addTab('categorie', "categorie");
tab2.setUrl('categorie.asp', null, true);
var tab3 = jtabs.addTab('categorie_campi', "categorie_campi");
tab3.setUrl('categorie_campi.asp', null, true);
var tab4 = jtabs.addTab('prodotti', "prodotti");
tab4.setUrl('prodotti.asp', null, true);
var tab5 = jtabs.addTab('sottocategorie', "sottocategorie");
tab5.setUrl('sottocategorie.asp', null, true);
var tab6 = jtabs.addTab('utenti', "utenti");
tab6.setUrl('utenti.asp', null, true);
I think you need to stop and learn some basic Javascript - the line of code you wrote means nothing. You declared a var called tab2, but you don't know how to use it.
Buy a Javascript book or refer to the "Javascript newbies' thread for more references. I'm not trying to be harsh, but you can't expect to use a complex Javacript library if you don't understand basic Javascript.
Sorry about that rudy but Animal and TryanDSL are right.
You can't expect us to hold your hand while we are also doing our stuff. You have to know the basics and try things out by yourself too. I'd recommend you to read a whole lot on OO javascript as well.
we are all in the same boat as we are all programmers right? And as programmers, we have to dig in and get dirty with such hassles as learning the framework we want to work with.