Last change
on this file since 29600 was 29600, checked in by davidb, 9 years ago |
Restructuring of JSP code. Removes the Firefox JS Console error caused by having quotes with <script> tags that are produced by out.println() stagements at the top-level HTML file
|
File size:
851 bytes
|
Line | |
---|
1 | <!DOCTYPE html>
|
---|
2 | <html>
|
---|
3 | <head>
|
---|
4 | <meta charset="utf-8"/>
|
---|
5 | </head>
|
---|
6 |
|
---|
7 | <body>
|
---|
8 |
|
---|
9 | <div style="display: none;">
|
---|
10 |
|
---|
11 | <!--
|
---|
12 | Set up a fallback position in case this page is accessed outside
|
---|
13 | of a JSP context (i.e., the JSP blocks aren't executed)
|
---|
14 | -->
|
---|
15 | <script>
|
---|
16 | var is_jsp_active = false;
|
---|
17 | var img_list = [ "Images/nz.gif" ];
|
---|
18 | </script>
|
---|
19 |
|
---|
20 | <%@include file="flag-functions.jsp" %>
|
---|
21 |
|
---|
22 | <!-- If JSP active, sets 'is_jsp_active' to true -->
|
---|
23 | <%@include file="list-flags.jsp" %>
|
---|
24 |
|
---|
25 | </div>
|
---|
26 |
|
---|
27 | <script>
|
---|
28 |
|
---|
29 | if (!is_jsp_active) {
|
---|
30 | document.write("<div>Web server is no JSP active. Unable to run flag comparison</div>");
|
---|
31 | }
|
---|
32 | var i;
|
---|
33 | for (i=0; i<img_list.length; i++) {
|
---|
34 | document.write("<img src=\"" + img_list[i] + "\" style=\"padding: 4px;\">\n");
|
---|
35 | }
|
---|
36 |
|
---|
37 | </script>
|
---|
38 |
|
---|
39 | </body>
|
---|
40 |
|
---|
41 | </html>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.