summaryrefslogtreecommitdiffstats
path: root/WebContent
diff options
context:
space:
mode:
authorJoonas Lehtinen <joonas.lehtinen@itmill.com>2006-12-29 17:19:59 +0000
committerJoonas Lehtinen <joonas.lehtinen@itmill.com>2006-12-29 17:19:59 +0000
commit6a135983f252374ac3743d08aa8d6f187afff4b7 (patch)
treeb373f26d03586c6816d1324a21d89c126581289c /WebContent
parent651728e5b945e38b546e26515372512b1afed9ca (diff)
downloadvaadin-framework-6a135983f252374ac3743d08aa8d6f187afff4b7.tar.gz
vaadin-framework-6a135983f252374ac3743d08aa8d6f187afff4b7.zip
Getting rid of old ajax stuff
svn changeset:192/svn branch:toolkit
Diffstat (limited to 'WebContent')
-rw-r--r--WebContent/demoapp.html71
-rw-r--r--WebContent/index.html28
2 files changed, 7 insertions, 92 deletions
diff --git a/WebContent/demoapp.html b/WebContent/demoapp.html
deleted file mode 100644
index c7f4db62a8..0000000000
--- a/WebContent/demoapp.html
+++ /dev/null
@@ -1,71 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-
-<html>
- <head>
- <title>IT Mill Toolkit Demo</title>
-
- <!-- This the default Client application -->
- <script src="client/client.js" type="text/javascript"></script>
-
- <!-- These are the "DefaultTheme" related CSS and JS files -->
- <script type="text/javascript" src="themes/default/theme.js"></script>
- <script type="text/javascript" src="themes/default/jscalendar/calendar.js"></script>
- <script type="text/javascript" src="themes/default/jscalendar/lang/calendar-en.js"></script>
- <script type="text/javascript" src="themes/default/jscalendar/calendar-setup.js"></script>
- <link rel="stylesheet" media="screen, projection" href="themes/default/calendar-default.css" type="text/css" />
- <link rel="stylesheet" media="screen, projection" href="themes/default/theme.css" type="text/css" />
-
- <!-- These are the "ExampleTheme" related CSS and JS files -->
- <script type="text/javascript" src="themes/example/example_theme.js"></script>
- <link rel="stylesheet" media="screen, projection" href="themes/example/example_styles.css" type="text/css" />
-
- </head>
-
- <body>
-
- <!-- Loading indicator -->
- <div id="ajax-wait" class="outset"
- style="top:4px;right:4px;cursor:wait;z-index:10000;background:white;display:none;position:absolute;">
- <div class="border pad">Loading...</div>
- </div>
-
- <!-- Div where the client puts the IT Mill Toolkit Application main window -->
- <div class="window" id="ajax-window" style=""></div>
-
- <!-- Start the application -->
- <script language="JavaScript">
- var baseUrl = document.location.href.split("demoapp.html")[0];
-
- // Determine the demo application
- var app = document.location.href.split("app=")[1].split("&")[0];
- document.title = document.title + " - " + app;
-
- // Create ajax-client for the application
- var client = new ITMillToolkitClient(
- document.getElementById('ajax-window'), // Element where to put main window
- baseUrl + app + "/UIDL/", // Adapter servlet URL (see WEB-INF/web.xml)
- baseUrl + "client/", // Base directory for the client
- document.getElementById('ajax-wait')); // Element to show while loading
-
- // Should we also show debug information?
- var debug = document.location.href.split("debug=")[1];
- if (debug && debug.split("&")[0] == "1")
- client.debugEnabled = true;
-
- // Create the default theme and register the theme to the ajax-client
- var defaultTheme = new DefaultTheme(baseUrl + "themes/default/");
- defaultTheme.registerTo(client);
-
- // Create the example theme and register the theme to the ajax-client
- var exampleTheme = new ExampleTheme(baseUrl + "themes/example/",defaultTheme);
- exampleTheme.registerTo(client);
-
- // Start the client
- client.start();
-
- </script>
-
- </body>
- </html>
- \ No newline at end of file
diff --git a/WebContent/index.html b/WebContent/index.html
index 2444cfd44a..c0e00d75c3 100644
--- a/WebContent/index.html
+++ b/WebContent/index.html
@@ -13,17 +13,13 @@
<tr><td>
<h2>Hello World</h2>
<ul>
- <li><a href="demoapp.html?app=hello">AJAX</a></li>
- <li><a href="demoapp.html?debug=1&app=hello">AJAX + debug</a></li>
- <li><a href="hello/">Traditional web</a></li>
+ <li><a href="hello/">Autodetected mode</a></li>
<li><a href="src/com/itmill/toolkit/demo/Hello.java">Source</li>
</ul>
</td><td>
<h2>Feature Browser</h2>
<ul>
- <li><a href="demoapp.html?app=features">AJAX</a></li>
- <li><a href="demoapp.html?debug=1&app=features">AJAX + debug</a></li>
- <li><a href="features/">Traditional web</a></li>
+ <li><a href="features/">Autodetected mode</a></li>
<li><a href="src/com/itmill/toolkit/demo/features/">Sources folder</li>
</ul>
</td></tr>
@@ -31,17 +27,13 @@
<tr><td>
<h2>Calculator</h2>
<ul>
- <li><a href="demoapp.html?app=calc">AJAX</a></li>
- <li><a href="demoapp.html?debug=1&app=calc">AJAX + debug</a></li>
- <li><a href="calc/">Traditional web</a></li>
+ <li><a href="calc/">Autodetected mode</a></li>
<li><a href="src/com/itmill/toolkit/demo/Calc.java">Source</li>
</ul>
</td><td>
<h2>Large Table</h2>
<ul>
- <li><a href="demoapp.html?app=table">AJAX</a></li>
- <li><a href="demoapp.html?debug=1&app=table">AJAX + debug</a></li>
- <li><a href="table">Traditional web</a></li>
+ <li><a href="table">Autodetected mode</a></li>
<li><a href="src/com/itmill/toolkit/demo/table/TableDemoApplication.java">Source</li>
</ul>
</td></tr>
@@ -49,17 +41,13 @@
<tr><td>
<h2>Chat</h2>
<ul>
- <li><a href="demoapp.html?app=chat">AJAX</a></li>
- <li><a href="demoapp.html?debug=1&app=chat">AJAX + debug</a></li>
- <li><a href="chat/">Traditional web</a></li>
+ <li><a href="chat/">Autodetected mode</a></li>
<li><a href="src/com/itmill/toolkit/demo/Chat.java">Source</li>
</ul>
</td><td>
<h2>Login</h2>
<ul>
- <li><a href="demoapp.html?app=login">AJAX</a></li>
- <li><a href="demoapp.html?debug=1&app=login">AJAX + debug</a></li>
- <li><a href="login/">Traditional web</a></li>
+ <li><a href="login/">Autodetected mode</a></li>
<li><a href="src/com/itmill/toolkit/demo/Login.java">Source</li>
</ul>
</td></tr>
@@ -67,9 +55,7 @@
<tr><td>
<h2>GO-game</h2>
<ul>
- <li><a href="demoapp.html?app=gogame">AJAX</a></li>
- <li><a href="demoapp.html?debug=1&app=gogame">AJAX + debug</a></li>
- <li><a href="gogame/">Traditional web</a></li>
+ <li><a href="gogame/">Autodetected mode</a></li>
<li><a href="src/com/itmill/toolkit/demo/gogame/Board.java">Board component source</li>
<li><a href="src/com/itmill/toolkit/demo/gogame/Game.java">Game state model source</li>
<li><a href="src/com/itmill/toolkit/demo/gogame/Go.java">Application source</li>