annotate SSRS/SSRS.Web/index.html @ 114:e51a6af1c98d

working version
author adminsh@apollo
date Sat, 19 May 2012 16:53:34 +0100
parents b9d5f934cb21
children
rev   line source
112
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
2 <html xmlns="http://www.w3.org/1999/xhtml" >
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
3
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
4 <head>
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
5 <title>SSRS</title>
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
6 <style type="text/css">
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
7 html, body
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
8 {
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
9 height: 100%;
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
10 overflow: auto;
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
11 }
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
12 body
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
13 {
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
14 padding: 0;
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
15 margin: 0;
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
16 }
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
17 #silverlightControlHost
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
18 {
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
19 height: 100%;
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
20 text-align: center;
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
21 }
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
22 </style>
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
23 <script type="text/javascript" src="Silverlight.js"></script>
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
24 <script type="text/javascript" src="SplashScreen.js"></script>
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
25 <script type="text/javascript">
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
26 function onSilverlightError(sender, args) {
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
27 var appSource = "";
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
28 if (sender != null && sender != 0) {
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
29 appSource = sender.getHost().Source;
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
30 }
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
31
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
32 var errorType = args.ErrorType;
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
33 var iErrorCode = args.ErrorCode;
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
34
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
35 if (errorType == "ImageError" || errorType == "MediaError") {
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
36 return;
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
37 }
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
38
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
39 var errMsg = "Unhandled Error in Silverlight Application " + appSource + "\n";
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
40
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
41 errMsg += "Code: " + iErrorCode + " \n";
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
42 errMsg += "Category: " + errorType + " \n";
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
43 errMsg += "Message: " + args.ErrorMessage + " \n";
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
44
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
45 if (errorType == "ParserError") {
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
46 errMsg += "File: " + args.xamlFile + " \n";
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
47 errMsg += "Line: " + args.lineNumber + " \n";
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
48 errMsg += "Position: " + args.charPosition + " \n";
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
49 }
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
50 else if (errorType == "RuntimeError") {
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
51 if (args.lineNumber != 0) {
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
52 errMsg += "Line: " + args.lineNumber + " \n";
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
53 errMsg += "Position: " + args.charPosition + " \n";
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
54 }
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
55 errMsg += "MethodName: " + args.methodName + " \n";
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
56 }
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
57
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
58 throw new Error(errMsg);
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
59 }
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
60 </script>
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
61 </head>
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
62 <body>
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
63 <form id="form1" runat="server" style="height: 100%">
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
64 <div id="silverlightControlHost">
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
65 <object data="data:application/x-silverlight-2," type="application/x-silverlight-2"
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
66 width="100%" height="100%">
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
67 <param name="source" value="ClientBin/SSRS.xap" />
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
68 <param name="onError" value="onSilverlightError" />
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
69 <param name="background" value="white" />
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
70 <param name="splashscreensource" value="SplashScreen.xaml" />
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
71 <param name="onSourceDownloadProgressChanged" value="onSourceDownloadProgressChanged" />
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
72 <param name="minRuntimeVersion" value="4.0" />
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
73 <param name="autoUpgrade" value="true" />
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
74 <a href="http://go.microsoft.com/fwlink/?LinkID=149156&v=4.0" style="text-decoration: none">
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
75 <img src="http://go.microsoft.com/fwlink/?LinkId=161376" alt="Get Microsoft Silverlight"
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
76 style="border-style: none" />
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
77 </a>
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
78 </object>
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
79 <iframe id="_sl_historyFrame" style="visibility: hidden; height: 0px; width: 0px;
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
80 border: 0px"></iframe>
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
81 </div>
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
82 </form>
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
83 </body>
b9d5f934cb21 Initial upload
adminsh@apollo
parents:
diff changeset
84 </html>