Asp tutorial. net coolite tabpanel Click Event
Ext. onready (
Function (){
// Alert ("OK ");
Var inputvalue = null;
Var lis = document. getelementbyid ("tabpaneltop"). getelementsbytagname ("li ");
For (var I = 0; I <lis. length; I ++ ){
If (lis [I]. id. indexof ("tabpaneltop")>-1 ){
Lis [I]. onmousedown = function (){
Inputvalue = this. getelementsbytagname ("input") [0]. value;
Parent. window. location = "main. aspx? Id = "+ inputvalue;
// Alert (inputvalue );
Return;
}
}
}
});
// Use the addtab () method to dynamically create a webpage effect. The three parameters are the tabpanel Control id, the id of the newly created tab, and the content path of the tab created in the West.
<Script type = "text/Webpage effects">
Function addtab (tabpanel, id, url ){
Var tab = tabpanel. getcomponent (id );
If (! Tab ){
Tab = tabpanel. add ({
Id: id,
Title: url,
Closable: true,
Autoload :{
Showmask: true,
Url: url,
Mode: 'iframe ',
Maskmsg: 'loading'
}
});
}
Tabpanel. setactivetab (tab );
}
</Script>