$tabs = new mosTabs(0);$tabs->startPane( 'pane_name' );$tabs->startTab( "title1", "id1" );echo 'content1';$tabs->endTab();$tabs->startTab( "title2", "id2" );echo 'content2';$tabs->endTab();$tabs->endPane();
$tabs = new mosTabs(0);$tabs->startPane( 'pane_name' );$tabs->startTab( "title1", "id1" );echo 'content1';$tabs->endTab();$tabs->startAjaxTab( "title2", "id2", 'testme(\'id2\')');echo 'content2';$tabs->endAjaxTab();$tabs->endPane();
var ajax = new sack();function whenLoading(){ var e = document.getElementById(ajax.element); e.innerHTML = "<img src='tools/updiag/images/loading.gif'>Sending Data...";}function whenLoaded(){ var e = document.getElementById(ajax.element); e.innerHTML = "<img src='tools/updiag/images/loading.gif'>Data Sent...";}function whenInteractive(){ var e = document.getElementById(ajax.element); e.innerHTML = "<img src='tools/updiag/images/loading.gif'>Getting data...";}function testme(q){ var e = document.getElementById('ajaxTab'+q); e.style.display = ""; ajax.requestFile = "index3.php?option=com_admin&task=tools&tname=calculator"; ajax.method = 'POST'; ajax.element = 'ajaxTab'+q; ajax.onLoading = whenLoading; ajax.onLoaded = whenLoaded; ajax.onInteractive = whenInteractive; ajax.runAJAX();}