Hi Everyone,
I am trying to activate some tabs, that I disable when the webpage comes up. I call three different functions one after the other (I don't know if that is the reason why), but the last function is where I activate the tabs.
Here is the when the webpage comes up (its a script), I am disabling all except tab 0:
//Dissable all tabs except 0
$( "#Main" ).tabs( { disabled: [1, 2, 3, 4, 5] } ); <-------- This works fine.
The following is where I am disabling tab 0 and activating the rest + I am setting focus on tab 1:
if ($( "#Main" ).tabs( "option", "active" ) == '0')
{ //Open password
var Password=$('#status',data).text();//Display password needed
if (Password == "Status:OK") //Verify password
{
$("#Main").tabs({active:1}); //Set focus on tab 1
$("#Main").tabs({disabled:[0]});//Dissable the tab 0 only!
$("#Main").tabs( "option", "enable", [1,2,3,4,5]); // Enable all tabs except 0
}
else
$('p#status').text(Password);//Write to the status the reply
} //Close password
Next, is where I see the problem happening (I check if tabs are active, then I perform other things)
//Make sure the tabs are not disabled, before executing the click event
if(!$( "#Main" ).tabs( "option", "disabled" ))
{ //start not disabled
bla bla bla
}//close not disabled
Can someone spot what's happening?
Thanks.