thanks very much steven, it works on single line tabs but does'nt seem
to work fully with tabs with sub tabs
it seems it cant get diable the first tab, here my code including
extra code to retain tab on postback;

      $(function() {
            var SubcurrTab = $("#<%= SubcurrTab.ClientID %>");
            var currTab = $("#<%= currTab.ClientID %>");
            var $tabs = $('#container-1, #container-2').tabs();
            var toptab = '';
            var bottomtab = '';

            $("#container-1 > ul").tabs();
            $("#container-2 > ul").tabs();
            $('#container-1 > ul').bind('tabsselect', function(event,
ui) {
                currTab.val(ui.index + 1);
            });
            $('#container-2 > ul').bind('tabsselect', function(event,
ui) {
                SubcurrTab.val(ui.index + 1);
            });

            toptab = currTab.val();
            bottomtab = SubcurrTab.val();

            if (toptab != '') {
                $('#container-1 > ul').tabs().tabs('select', toptab);

                if (bottomtab != '') {
                    $tabs.eq(0).tabs('select', parseInt(toptab)-1).end
().eq(1).tabs('select', parseInt(bottomtab)-1);
                };
            }
        });

and this ( not sure the relation because my friend added it and hes
out of the country :S

      function Button2_onclick() {
          var $tabs = $('#container-1, #container-2').tabs();

          $tabs.eq(0).tabs('select', 1).end().eq(1).tabs('select', 2);

      };

Steven Black wrote:
> See http://jqueryui.com/demos/tabs/#option-disabled
>
> This will disable the second and third tabs.
>
> $('.selector').tabs('option', 'disabled', [1, 2]);
>
> Thereafter, this enables them all:
>
> $('.selector').tabs('option', 'disabled', []);
>
> **--**  Steve
>
>
> On Jan 8, 5:38 am, URBY <grungemin...@googlemail.com> wrote:
> > Hi i was wondering if it would be possible to lock until a user hits a
> > button.
> >
> > For example an Admin is adding someone to a database- the Admin is on
> > the add user tab but after enacting this add process(by input) they
> > cannot leave this tab until either cancelled or accomplished (both
> > done by a user input button). so again would it be possible to Lock
> > out other mobility to tabs locking on just one?
-- 
You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to jquery...@googlegroups.com.
To unsubscribe from this group, send email to 
jquery-ui+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en.


Reply via email to