Mercurial > hg > digilib-old
comparison xul/install_sidebar.jsp @ 97:041340d1b00e
Initial revision
author | engler |
---|---|
date | Mon, 05 May 2003 18:42:58 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
96:b5debb2b2404 | 97:041340d1b00e |
---|---|
1 <%@page contentType="text/html" import="java.util.*"%> | |
2 <% | |
3 String serverName = request.getServerName(); | |
4 int serverPort = request.getServerPort(); | |
5 String serverPATH = request.getRequestURI(); | |
6 int lastSlash = serverPATH.lastIndexOf("/"); | |
7 serverPATH=serverPATH.substring(0, lastSlash); | |
8 %> | |
9 <html> | |
10 <head> | |
11 <title>Alcatraz-XUL-Sidebars</title> | |
12 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> | |
13 | |
14 <script language="JavaScript"> | |
15 <!-- simple one-line side-bar-installer , addPanel("title in sidebar","url","url to customize tab. is optional") | |
16 | |
17 | |
18 // deluxe sidebar installer with browser testing | |
19 | |
20 function addSidebarPanel(name, url) { | |
21 if ((typeof window.sidebar == "object") && (typeof window.sidebar.addPanel == "function")) | |
22 { | |
23 window.sidebar.addPanel (name,url,""); | |
24 } | |
25 else | |
26 { | |
27 alert ("To use this functionality a Netscape 6+ or Mozilla browser is needed !"); | |
28 } | |
29 } | |
30 --> | |
31 </script> | |
32 | |
33 | |
34 </head> | |
35 | |
36 <body bgcolor="#FFFFFF" text="#000000"> | |
37 <div align=center> | |
38 | |
39 <br> <br> | |
40 | |
41 <h3>Alcatraz-XUL-Sidebars</h3> | |
42 <!-- installing tab into sidebar with javascript inside form--> | |
43 | |
44 Digilib-Buttons im Sidebar | |
45 <br> | |
46 <input type="submit" name="Abschicken" value="Install Button-List into Sidebar!" onClick="javascript:sidebar.addPanel('DIGILIB-Buttons', 'http://<%=serverName%>:<%=serverPort%><%=serverPATH%>/buttons.xul','');"> | |
47 <br><br> | |
48 | |
49 </div> | |
50 </body> | |
51 | |
52 </html> |