Home All Groups Group Topic Archive Search About
Author
11 Oct 2006 10:16 AM
mathiasfritsch
I am working with ie webcontrols
I need to change the selected Tap by clientside code. Is it possible?
regards
Mathias

Author
11 Oct 2006 11:43 AM
ThunderMusic
it's absolutely possible... Change the css class of your TabStrip and you're
done... I don't know how your tabstrip is done, but in javascript you should
use (google it if you don't know what those methods are) :

var actualTabId = <the default class id>;
function ChangeTab(newTabId) {
    var oldTab = document.getElementById(actualTabId);
    if (oldTab) oldTab.className = 'Tab';
    var newTab = document.getElementById('<the element id>');
    if (newTab) newTab.className = 'ActiveTab';
    actualTabId = newTabId;
}

it should work like this... I didn't test it, but it should... ;)

I hope it helps

ThunderMusic
<mathiasfrit***@gmx.de> wrote in message
Show quoteHide quote
news:1160561807.665576.86750@b28g2000cwb.googlegroups.com...
>I am working with ie webcontrols
> I need to change the selected Tap by clientside code. Is it possible?
> regards
> Mathias
>