asp.net coolite in the TabPanel do click events

Source: Internet
Author: User

ASP tutorial. NET Coolite tabpanel do click events

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
}

}
}
});

Through the Web page effects method AddTab () method is dynamically created, three parameters are: TabPanel control ID, the ID of the newly created tab, the content path that is rendered by the tab created in the West.


<script type= "text/web 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>

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.