have you seen the example in thw
http://www.weinfreund.de/struts2-jquery-showcase/index.action struts2 jquery
plugin showcase ?
There is an example for enabling disabled tabs.
JavaScript Code:
$.subscribe('tabchange', function(event,data) {
var tab = event.originalEvent.ui.index;
$('#changepanel').html('Change to Tab '+tab+'.');
$('#infopanel').html('');
if(tab == 2) {
$('#remotetabs').tabs( 'enable' , 3 );
}
else if(tab == 3) {
$('#remotetabs').tabs( 'enable' , 4 );
}
});
$.subscribe('tabcomplete', function(event,ui) {
$('#infopanel').html('Completed request with Status
'+event.originalEvent.status+ '.
Status: '+event.originalEvent.request.status);
});
JSP Code:
--
View this message in context:
http://struts.1045723.n5.nabble.com/Jquery-plugin-sj-tab-tp3556130p3556542.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]