I have a Treeview with a onclick event that shows a window that loads an specific HTML page:
/* On Click Function */
$('#tt').tree({
onClick: function(node){
if (node.url == "" || node.url == null) {
} else {
/* Open a Window to show data */
$('#win').window({
width:880,
height:500,
modal:true
});
/* load window content from disk */
$('#win').window('refresh', node.url);
/* Define window properties */
$('#win').window({
cls:'c7',
title: 'Dados',
border:'thin',
collapsible: false,
minimizable: false,
maximizable: true,
closable: true
});
/* alert(node.url); // alert node text property when clicked */
}
}
});
Now, I need to open this same window but with two TABs, each loading a specific HTML page.
How can I do this using Javascript?