struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Johannes Geppert <jo...@apache.org>
Subject Re: Jquery plugin sj:tab
Date Mon, 14 Mar 2011 15:39:46 GMT
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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message