WebFX WebBoard
Message Thread:
View All Messages
Back to WebFX
 Tab Pane - enable/disable tabs?, Mike B., July 1, 2004
     Re:Tab Pane - enable/disable tabs?, Mike B., July 1, 2004
         Re:Tab Pane - enable/disable tabs?, Emil A Eklund, July 1, 2004

Subject: Re:Tab Pane - enable/disable tabs? From: Mike B. Date: July 1, 2004

I have to admit that I'm a little embarrassed that it took me as long as it did to figure this out, but all you have to do to enable/disable the tabs is alter the onclick function to add the logic you need. (Erik mentions this in an earlier thread.) Using Erik's suggestion, I made a very simple modification to the tab pane code that checks a boolean that I initialize at the top of the tabpane.js.  The default behavior is to leave all of the tabs active, but if I want I can override tabsInit to false if I want to.

I hope this helps someone in the future.

-Mike

//global
var tabsInit=true;

function WebFXTabPage( el, tabPane, nIndex ) {
...

this
.tab.onclick = function () {
if
(tabsInit == true){
oThis.select();
}else{
return
;
}};


From: Mike B.
Sent: July 1, 2004
Subject: Re:Tab Pane - enable/disable tabs?

Hi,

I've seen this question asked a couple of times but haven't seen an answer, at least not the answer I wanted to hear. :) Anyway, is there any easy way to set up a function that would disable/enable cliking of tabs in the tabpane control? I'm having a problem when users try to click on a tab before hte page has finished loading.  It seems that clicking on the tab is interrupting the page load.

Any help would be appreciated.

Thanks!





Reply
Name: 
Email: 
Subject: 

Enter your reply to this message below. HTML tags are not supported but words that start with http://, ftp:// or mailto: are converted to links.


View All Messages
Back to WebFX