TabPanel in asp.net coolite as Click Event

Source: Internet
Author: User

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>

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.