[jQuery] Re: adding tabs dynamically

2009-02-24 Thread Paul Georges
yup figured it out, thanks guys finally i don't change the template... i do something like this. // add a tab with the the nick specified $("#tabs").tabs('add' , '#' + tag, '' + nick + ''); // correct the holding div $("#" + tag).attr("style", "width: 95%; height: 80%;"); // add the content $("

[jQuery] Re: adding tabs dynamically

2009-02-23 Thread Klaus Hartl
You could add that to the template. Or use the add callback to populate the tab: $('#whatever').tabs({ add: function(event, ui) { $(ui.panel).html( ... ) .find('input'); // do something with these inputs } }); It seems you have to use the add callback anyway to get to

[jQuery] Re: adding tabs dynamically

2009-02-22 Thread Paul Georges
awesome, thanks. can't believe i missed that one. and as for the content of the tab? if i wanted a tab to always have two textboxes, should i modify the template? and then who would i access these two input boxes dynamically? thanks heaps paul On Feb 21, 12:41 am, Klaus Hartl wrote: > Why don

[jQuery] Re: adding tabs dynamically

2009-02-22 Thread Paul Georges
awesome, thanks. can't believe i missed that one. and as for the content of the tab? if i wanted a tab to always have two textboxes, should i modify the template? and then who would i access these two input boxes dynamically? thanks heaps paul On Feb 21, 12:41 am, Klaus Hartl wrote: > Why don

[jQuery] Re: adding tabs dynamically

2009-02-22 Thread Paul Georges
awesome, thanks. can't believe i missed that one. and as for the content of the tab? if i wanted a tab to always have two textboxes, should i modify the template? and then who would i access these two input boxes dynamically? thanks heaps paul On Feb 21, 12:41 am, Klaus Hartl wrote: > Why don

[jQuery] Re: adding tabs dynamically

2009-02-20 Thread Klaus Hartl
Why don't you put the desired label in the first place? $('#tabs').tabs('add', '#new', 'Label'); Other than that you could utilize the add callback: $('#tabs').tabs({ add: function(event, ui) { // add additional html to the tab $('span', ui.tab).html(...); } }); Or you