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>