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