52 lines
1.6 KiB
HTML
52 lines
1.6 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
|
<html>
|
|
<head>
|
|
<title>TabView Example - Dynamic Loading</title>
|
|
<link rel="stylesheet" type="text/css" href="css/example.css">
|
|
|
|
<link rel="stylesheet" type="text/css" href="../../build/tabview/assets/tabs.css">
|
|
<link rel="stylesheet" type="text/css" href="../../build/tabview/assets/border_tabs.css">
|
|
<script type="text/javascript" src="../../build/yahoo/yahoo.js"></script>
|
|
<script type="text/javascript" src="../../build/event/event.js"></script>
|
|
<script type="text/javascript" src="../../build/dom/dom.js"></script>
|
|
<script type="text/javascript" src="../../build/connection/connection.js"></script>
|
|
<script type="text/javascript" src="../../build/tabview/tabview.js"></script>
|
|
<style type="text/css">
|
|
#demo .yui-content {
|
|
height:12em;
|
|
}
|
|
|
|
|
|
</style>
|
|
<script type="text/javascript">
|
|
(function() {
|
|
var tabView = new YAHOO.widget.TabView(null, { id: 'demo' } );
|
|
|
|
tabView.addTab( new YAHOO.widget.Tab(null, { // TODO: href?
|
|
label: 'lorem',
|
|
dataSrc: 'php/nonsense.php?type=para',
|
|
active: true//,
|
|
//firesChangeEvents ?
|
|
}));
|
|
|
|
tabView.addTab( new YAHOO.widget.Tab({
|
|
label: 'dolor',
|
|
dataSrc: 'php/nonsense.php?type=list',
|
|
cacheData: true
|
|
}));
|
|
|
|
YAHOO.util.Event.onContentReady('doc', function() {
|
|
tabView.appendTo('doc');
|
|
});
|
|
})();
|
|
</script>
|
|
|
|
</head>
|
|
<body>
|
|
<div id="doc">
|
|
<h1>TabView Example - Dynamic Loading</h1>
|
|
<p>This example demonstrates how to load tab content dynamically.</p>
|
|
|
|
</div>
|
|
</body>
|
|
</html>
|