Project

General

Profile

« Previous | Next » 

Revision 5119

check for IE6 and show warning if they are using it

View differences:

cart.jsp
48 48
	src="<%=STYLE_COMMON_URL%>/effects.js">
49 49
</script>
50 50
<script language="Javascript">
51
		
51
		function checkBrowser() {
52
			Prototype.Browser.IE6 = Prototype.Browser.IE && parseInt(navigator.userAgent.substring(navigator.userAgent.indexOf("MSIE")+5)) == 6;
53
			Prototype.Browser.IE7 = Prototype.Browser.IE && parseInt(navigator.userAgent.substring(navigator.userAgent.indexOf("MSIE")+5)) == 7;
54
			Prototype.Browser.IE8 = Prototype.Browser.IE && !Prototype.Browser.IE6 && !Prototype.Browser.IE7;
55

  
56
			if (Prototype.Browser.IE6) {
57
				alert("NOTE: IE7, IE8, Firefox and Chrome are currently supported for data download.");
58
			}
59
		}
52 60
		function listAssessments(){
53 61
			var metacatURL = "<%=CONTEXT_URL%>/metacat";
54 62
		
......
96 104
		
97 105
   </script>
98 106
</head>
99
<body onload="listAssessments()">
107
<body onload="checkBrowser();listAssessments()">
100 108
<script language="JavaScript">
101 109
          insertTemplateOpening("<%=CONTEXT_URL%>");
102 110
          insertSearchBox("<%=CONTEXT_URL%>");

Also available in: Unified diff