OLD | NEW |
---|---|
1 <html> | 1 <html> |
2 <head><title>src property test</title> | 2 <head><title>src property test</title> |
3 <script type="text/javascript" src="chrome_frame_tester_helpers.js"> | 3 <script type="text/javascript" src="chrome_frame_tester_helpers.js"> |
4 </script> | 4 </script> |
5 <script type="text/javascript"> | 5 <script type="text/javascript"> |
6 function OnNavigationFailed() { | 6 function OnNavigationFailed() { |
7 onFailure("ChromeFrame_SrcTest", 1, "ChromeFrame Navigation failed"); | 7 onFailure("ChromeFrame_SrcTest", 1, "ChromeFrame Navigation failed"); |
8 } | 8 } |
9 | 9 |
10 function OnChromeFrameLoaded(url) { | 10 function OnChromeFrameLoaded(url) { |
11 url = url.data; | 11 url = url.data; |
12 | 12 |
13 var chromeFrame = GetChromeFrame(); | 13 var chromeFrame = GetChromeFrame(); |
14 var frame_url = chromeFrame.src; | 14 var frame_url = chromeFrame.src; |
15 | 15 |
16 appendStatus("Loaded URL: " + url + " Frame url: " + frame_url); | 16 appendStatus("Loaded URL: " + url + " Frame url: " + frame_url); |
17 } | 17 } |
18 | 18 |
19 function GetChromeFrame() { | 19 function GetChromeFrame() { |
20 return window.document.ChromeFrame; | 20 return window.document.ChromeFrame; |
21 } | 21 } |
22 | 22 |
23 </script> | 23 </script> |
24 </head> | 24 </head> |
25 <body> | 25 <body> |
26 <div id="statusPanel" style="border: 1px solid red; width: 100%"> | 26 <div id="statusPanel" style="border: 1px solid red; width: 100%"> |
27 Test running.... | 27 Test running.... |
28 </div> | 28 </div> |
29 | 29 <span id="ChromeFrameSpan"></span> |
30 <object id="ChromeFrame" width="500" height="500" | 30 <script type="text/javascript"> |
31 codebase="http://www.google.com" | 31 insertControl( |
32 classid="CLSID:E0A900DF-9611-4446-86BD-4B1D47E7DB2A"> | 32 "ChromeFrameSpan", |
33 <param name="src" value="src_property_frame1.html"> | 33 ' <object id="ChromeFrame" width="500" height="500"' + |
34 <param name="onload" value="return OnChromeFrameLoaded(arguments[0]);" > | 34 ' codebase="http://www.google.com"' + |
35 <param name="onloaderror" value="return OnNavigationFailed(arguments[0 ]);"> | 35 ' classid="CLSID:E0A900DF-9611-4446-86BD-4B1D47E7DB2A">' + |
36 <embed id="ChromeFramePlugin" width="500" height="500" name="ChromeFra me" | 36 ' <param name="src" value="src_property_frame1.html">' + |
37 src="src_property_frame1.html" | 37 ' <param name="onload" value="return OnChromeFrameLoaded(arguments[0]); ">' + |
robertshield
2011/12/02 22:05:02
could you make these < 80 chars? maybe break the l
| |
38 type="application/chromeframe" | 38 ' <param name="onloaderror" value="return OnNavigationFailed(arguments[ 0]);">' + |
39 onload="return OnChromeFrameLoaded(arguments[0]);" | 39 ' <embed id="ChromeFramePlugin" width="500" height="500" name="ChromeFr ame"' + |
40 onloaderror="return OnNavigationFailed(arguments[0]);"> | 40 ' src="src_property_frame1.html"' + |
41 </embed> | 41 ' type="application/chromeframe"' + |
42 </object> | 42 ' onload="return OnChromeFrameLoaded(arguments[0]);"' + |
43 ' onloaderror="return OnNavigationFailed(arguments[0]);">' + | |
44 ' </embed>' + | |
45 ' </object>'); | |
46 </script> | |
43 <p>Tests ChromeFrame Navigation</p> | 47 <p>Tests ChromeFrame Navigation</p> |
44 </body> | 48 </body> |
45 </html> | 49 </html> |
OLD | NEW |