source: ISOcat/trunk/mod-ISOcat-interface-gi/interface/JSXAPPS/ISOcat/launch.html @ 2029

Last change on this file since 2029 was 2029, checked in by mwindhouwer, 12 years ago

Initial import of all the *cats, i.e., ISOcat, RELcat and SCHEMAcat.

File size: 1.1 KB
Line 
1<!-- Copyright (c) 2001-2007, TIBCO Software Inc. -->
2
3<html>
4  <head>
5    <title>General Interface(TM) Application Launcher</title>
6    <script type="text/javascript">
7     
8function launchApp() {
9  try {
10    var url = window.location.href;
11    if (url.indexOf("?") >= 0) url = url.substring(0, url.indexOf("?"));
12    var xhtml = url.indexOf(".xhtml") == url.length - 6;
13
14    url = url.replace(/\\/g, "/");
15    var index = url.lastIndexOf("JSXAPPS/");
16    if (index >= 0) {
17      var appPath = url.substring(index+8, url.lastIndexOf("/"));
18      var launcher = url.substring(0, index+8) + "launcher.html"
19      window.location.href = launcher + "?jsxapppath=" + appPath + "&xhtml=" + xhtml;
20    } else {
21      // error app not a descendant of a JSXAPPS directory
22      window.alert("Error: application not contained in a JSXAPPS folder.");
23    }
24  } catch (e) {
25    window.alert("Error: " + e.description);
26  }
27}
28
29    </script>
30  </head>
31  <body onload="launchApp();">
32 
33  <div id="title">
34 
35  </div>
36  <div id="error"> 
37 
38  </div>
39 
40  </body>
41</html>
Note: See TracBrowser for help on using the repository browser.