Author: psharples
Date: Tue Dec  7 13:31:53 2010
New Revision: 1043040

URL: http://svn.apache.org/viewvc?rev=1043040&view=rev
Log:
Added code to redirect IE users to a page showing that IE is unsupported. 
(reason: navigator.geolocation object for IE is not supported) Partial fix for 
WOOKIE-166.

Added:
    incubator/wookie/trunk/widgets/geo/error/
    incubator/wookie/trunk/widgets/geo/error/unsupported.html   (with props)
Modified:
    incubator/wookie/trunk/widgets/geo/index.html

Added: incubator/wookie/trunk/widgets/geo/error/unsupported.html
URL: 
http://svn.apache.org/viewvc/incubator/wookie/trunk/widgets/geo/error/unsupported.html?rev=1043040&view=auto
==============================================================================
--- incubator/wookie/trunk/widgets/geo/error/unsupported.html (added)
+++ incubator/wookie/trunk/widgets/geo/error/unsupported.html Tue Dec  7 
13:31:53 2010
@@ -0,0 +1,31 @@
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<html>
+<head>
+<title>Unsupported browser</title>
+</head>
+<body>
+  <p>Unfortunately, your browser is currently unsupported by this widget.  
+        We are sorry for the inconvenience. Please use one of the 
+        supported browsers listed below:</p>
+        <p>Supported browsers: <a href="http://www.opera.com";>Opera</a>,       
  
+        <a href="http://www.google.com/chrome";>Google Chrome</a>,
+               <a href="http://www.mozilla.com";>Firefox</a>,         
+        <a href="http://www.apple.com/safari";>Safari</a> and 
+        <a href="http://www.konqueror.org";>Konqueror</a>.</p>
+</body>
+</html>
\ No newline at end of file

Propchange: incubator/wookie/trunk/widgets/geo/error/unsupported.html
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Modified: incubator/wookie/trunk/widgets/geo/index.html
URL: 
http://svn.apache.org/viewvc/incubator/wookie/trunk/widgets/geo/index.html?rev=1043040&r1=1043039&r2=1043040&view=diff
==============================================================================
--- incubator/wookie/trunk/widgets/geo/index.html (original)
+++ incubator/wookie/trunk/widgets/geo/index.html Tue Dec  7 13:31:53 2010
@@ -17,6 +17,7 @@
 <!DOCTYPE html>
 <html>
 <head>
+  <!--[if IE]><script>window.location = 
"error/unsupported.html"</script><![endif]-->
   <script type="text/javascript" src="scripts/json2.js"></script>
   <link rel="stylesheet" href="style/styles.css" type="text/css" />
 <title>Geo</title>


Reply via email to