comparison client/digitallibrary/digilib.jsp @ 199:21789f3f7251

Corrected Problems with innerWidth and about:blank for Safari.
author robcast
date Wed, 14 Jan 2004 12:06:53 +0100
parents 2336ac05d57d
children 16126dee8712
comparison
equal deleted inserted replaced
198:d6a3b6aaa203 199:21789f3f7251
101 <head> 101 <head>
102 <script language="Javascript"> 102 <script language="Javascript">
103 103
104 function redirect() { 104 function redirect() {
105 105
106 if (document.body) { 106 var wwidth, wheight;
107 107 if (self.innerHeight) // all except Explorer
108 // internet explorer + opera 108 {
109 client = "&dw=" + (document.body.clientWidth-30) + "&dh=" + (document.body.clientHeight-30); 109 wwidth = self.innerWidth;
110 110 wheight = self.innerHeight;
111 } else { 111 }
112 112 else if (document.documentElement && document.documentElement.clientHeight)
113 // mozilla-browsers (netscape 4.xx, netscape 6.xx, etc.) 113 // Explorer 6 Strict Mode
114 client = "&dw=" + (innerWidth-30) + "&dh=" + (innerHeight-30); 114 {
115 115 wwidth = document.documentElement.clientWidth;
116 } 116 wheight = document.documentElement.clientHeight;
117 }
118 else if (document.body) // other Explorers
119 {
120 wwidth = document.body.clientWidth;
121 wheight = document.body.clientHeight;
122 }
123
124 client = "&dw=" + (wwidth-30) + "&dh=" + (wheight-30);
125 //alert("CLIENT: "+client);
126
117 <% 127 <%
118 if (dlRequest.isRDF()){ 128 if (dlRequest.isRDF()){
119 String strAllParams=dlRequest.getAsString(); 129 String strAllParams=dlRequest.getAsString();
120 %> 130 %>
121 location.replace(document.URL+"?"+"<%=strAllParams%>" + client); 131 location.replace(document.URL+"?"+"<%=strAllParams%>" + client);
143 String imageLocation = dlRequest.getAsString("base.url") + "/servlet/Scaler/?" + dlRequest.getAsString(); 153 String imageLocation = dlRequest.getAsString("base.url") + "/servlet/Scaler/?" + dlRequest.getAsString();
144 %> 154 %>
145 155
146 <html> 156 <html>
147 <head> 157 <head>
148 <title>Digital Document Library - Alcatraz (Level 1)</title> 158 <title>Digital Document Library (L1)</title>
149 159
150 <script src="navigation.js" type="text/javascript"> </script> 160 <script src="navigation.js" type="text/javascript"> </script>
151 161
152 <!-- modules --> 162 <!-- modules -->
153 <script src="modules/pagesTotal.js" type="text/javascript"> </script> 163 <script src="modules/pagesTotal.js" type="text/javascript"> </script>
224 String query = "digilib.jsp?" + dlRequest.getAsString(); 234 String query = "digilib.jsp?" + dlRequest.getAsString();
225 %> 235 %>
226 236
227 <html> 237 <html>
228 <head> 238 <head>
229 <title>Digital Document Library - Alcatraz (Level 2)</title> 239 <title>Digital Document Library (L2)</title>
230 </head> 240 </head>
231 241
232 <frameset cols="*,90" border="0"> 242 <frameset cols="*,90" border="0">
233 <frame name="mainFrame" src="<%= query %>" scrolling="auto"> 243 <frame name="mainFrame" src="<%= query %>" scrolling="auto">
234 <frameset rows="20,*" border="0"> 244 <frameset rows="20,*" border="0">
235 <frame name="pageFrame" src="about:blank" scrolling="no" noresize> 245 <frame name="pageFrame" src="empty.html" scrolling="no" noresize>
236 <frame name="rightFrame" src="dlMenu.html" scrolling="no" noresize> 246 <frame name="rightFrame" src="dlMenu.html" scrolling="no" noresize>
237 </frameset> 247 </frameset>
238 </frameset> 248 </frameset>
239 249
240 </html> 250 </html>