summaryrefslogtreecommitdiff
path: root/includes/js/dijit/tests/layout/test_TabContainer_remote.html
diff options
context:
space:
mode:
authormensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2008-11-14 15:39:19 +0000
committermensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2008-11-14 15:39:19 +0000
commit1c5685d68f1b73270fb814fe04cbb490eb90ba5f (patch)
tree3d3ada08a934b96fc31531f1327690d7edc6f766 /includes/js/dijit/tests/layout/test_TabContainer_remote.html
parent104d59099e048688c4dbac37d72137006e396558 (diff)
downloadsemanticscuttle-1c5685d68f1b73270fb814fe04cbb490eb90ba5f.tar.gz
semanticscuttle-1c5685d68f1b73270fb814fe04cbb490eb90ba5f.tar.bz2
Minor fix: Remove DOJO library (60Mo) replaced by link to Google CDN (online DOJO library)
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@159 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'includes/js/dijit/tests/layout/test_TabContainer_remote.html')
-rw-r--r--includes/js/dijit/tests/layout/test_TabContainer_remote.html109
1 files changed, 0 insertions, 109 deletions
diff --git a/includes/js/dijit/tests/layout/test_TabContainer_remote.html b/includes/js/dijit/tests/layout/test_TabContainer_remote.html
deleted file mode 100644
index 19515a9..0000000
--- a/includes/js/dijit/tests/layout/test_TabContainer_remote.html
+++ /dev/null
@@ -1,109 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
- "http://www.w3.org/TR/html4/strict.dtd">
-<html>
-<head>
- <title>TabContainer Demo</title>
-
- <style type="text/css">
- @import "../../../dojo/resources/dojo.css";
- @import "../css/dijitTests.css";
-
- body {
- font-family : sans-serif;
- margin:20px;
- }
-
- /* add padding to each contentpane inside the tab container, and scrollbar if necessary */
- .dojoTabPane {
- padding : 10px 10px 10px 10px;
- overflow: auto;
- }
- </style>
-
- <script type="text/javascript" djConfig="isDebug: true,parseOnLoad:true"
- src="../../../dojo/dojo.js"></script>
- <script type="text/javascript" src="../_testCommon.js"></script>
-
- <script type="text/javascript">
- dojo.require("dijit.layout.ContentPane");
- dojo.require("dijit.layout.TabContainer");
- dojo.require("dijit.Tooltip");
- dojo.require("dijit.layout.LinkPane");
- dojo.require("dijit.form.Button");
- dojo.require("dojo.parser"); // scan page for widgets and instantiate them
-
- var tabCounter;
- function testClose(pane, tab){
- // remove html from title
- var title = dojo.trim(tab.title.replace(/<\/?[a-z][a-z0-9]*[^>]*>/ig, ""));
- return confirm("Please confirm that you want tab "+title+" closed");
- }
-
- function randomMessageId(){
- return Math.floor(Math.random() * 3) + 3;
- }
-
- function createTab(){
- if(!tabCounter){ tabCounter = 3; }
-
- var title = '<img src="../images/plus.gif" style="background-color:#95B7D3;"/> Tab ' +(++tabCounter);
- var refreshOnShow = !!(tabCounter % 2);
-
- var newTab = new dijit.layout.ContentPane({
- title: title + (refreshOnShow ? ' <i>refreshOnShow</i>': ''),
- closable:true,
- refreshOnShow: refreshOnShow,
- href: 'getResponse.php?delay=1000&messId='+randomMessageId()
- +"&message="+encodeURI("<h1>Programmatically created Tab "+tabCounter+"</h1>")
- }, dojo.doc.createElement('div'));
-
- dijit.byId('ttabs').addChild(newTab);
-
- newTab.startup(); // find parent TabContainer and subscribe to selectChild event
- }
-
- startTime = new Date();
- dojo.addOnLoad(function(){
- var elapsed = new Date().getTime() - startTime;
- var p = document.createElement("p");
- p.appendChild(document.createTextNode("Widgets loaded in " + elapsed + "ms"));
- document.body.appendChild(p);
- });
- </script>
-</head>
-<body>
-
- <h1 class="testTitle">Dijit layout.TabContainer (delayed) remote tests</h1>
-
- <p>These tabs are made up of external content. Loading is delayed to make it easier to see if refreshOnShow and preload = 'false' is working.<br/>
- The tabs also tests to insert html in the Tab title
- </p>
-
- <div dojoType='dijit.form.Button' onClick='createTab()'>Create a Tab</div>
- <div id="ttabs" dojoType="dijit.layout.TabContainer" tabPosition="top" style="width: 100%; height: 20em;">
- <a id="ttab1" dojoType="dijit.layout.LinkPane"
- href="getResponse.php?messId=3&delay=1000"
- closable="true"
- ><img src='../images/copy.gif'/> Tab1</a>
- <a id="ttab2" dojoType="dijit.layout.LinkPane"
- href="getResponse.php?messId=4&delay=1000"
- refreshOnShow="true" title="Tab 2 "
- selected='true'
- closable='true'
- ><i>refreshOnShow</i>
- <img src='../images/cut.gif'/>
- </a>
- <a dojoType="dijit.layout.LinkPane"
- href="getResponse.php?messId=5&delay=1000"
- onClose="testClose"
- closable="true"
- >
- <b>Tab 3</b>
- <img src='../images/paste.gif'/>
- </a>
- </div>
-
- <h3>Rendering time</h3>
-
-</body>
-</html>