| OLD | NEW |
| 1 <!-- saved from url=(0014)about:internet --> | 1 <!-- saved from url=(0014)about:internet --> |
| 2 <html> | 2 <html> |
| 3 <!-- This page is meant to load inside the host browser like IE/FF --> | 3 <!-- This page is meant to load inside the host browser like IE/FF --> |
| 4 <head> | 4 <head> |
| 5 <script type="text/javascript" src="chrome_frame_tester_helpers.js"> | 5 <script type="text/javascript" src="chrome_frame_tester_helpers.js"> |
| 6 </script> | 6 </script> |
| 7 <script type="text/javascript"> | 7 <script type="text/javascript"> |
| 8 var post_message_reply_received = 0; | 8 var post_message_reply_received = 0; |
| 9 | 9 |
| 10 function onChromeFrameLoaded() { | 10 function onChromeFrameLoaded() { |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 | 34 |
| 35 function onPostMessageFailure() { | 35 function onPostMessageFailure() { |
| 36 if (!post_message_reply_received) { | 36 if (!post_message_reply_received) { |
| 37 onFailure('PostMessage', 1, 'Did not receive reply back from frame'); | 37 onFailure('PostMessage', 1, 'Did not receive reply back from frame'); |
| 38 } | 38 } |
| 39 } | 39 } |
| 40 </script> | 40 </script> |
| 41 </head> | 41 </head> |
| 42 | 42 |
| 43 <body> | 43 <body> |
| 44 <object id="ChromeFrame" width="500" height ="300" | 44 <span id="ChromeFrameSpan"></span> |
| 45 codebase="http://www.google.com" | 45 <script type="text/javascript"> |
| 46 classid="CLSID:E0A900DF-9611-4446-86BD-4B1D47E7DB2A"> | 46 insertControl( |
| 47 <param name="src" value="postmessage_basic_frame.html"> | 47 "ChromeFrameSpan", |
| 48 <param name="onload" value="onChromeFrameLoaded();"> | 48 ' <object id="ChromeFrame" width="500" height ="300"' + |
| 49 <param name="onloaderror" value="onNavigationFailed();"> | 49 ' codebase="http://www.google.com"' + |
| 50 <param name="onmessage" value="onChromeFrameMessage(arguments[0]);"> | 50 ' classid="CLSID:E0A900DF-9611-4446-86BD-4B1D47E7DB2A">' + |
| 51 <embed id="ChromeFramePlugin" name="ChromeFrame" | 51 ' <param name="src" value="postmessage_basic_frame.html">' + |
| 52 width="500" height="500" | 52 ' <param name="onload" value="onChromeFrameLoaded();">' + |
| 53 src="postmessage_basic_frame.html" | 53 ' <param name="onloaderror" value="onNavigationFailed();">' + |
| 54 type="application/chromeframe" | 54 ' <param name="onmessage" value="onChromeFrameMessage(arguments[0]);">' + |
| 55 onload="onChromeFrameLoaded();" | 55 ' <embed id="ChromeFramePlugin" name="ChromeFrame"' + |
| 56 onloaderror="onNavigationFailed();" | 56 ' width="500" height="500"' + |
| 57 onmessage="onChromeFrameMessage(arguments[0]);"> | 57 ' src="postmessage_basic_frame.html"' + |
| 58 </embed> | 58 ' type="application/chromeframe"' + |
| 59 </object> | 59 ' onload="onChromeFrameLoaded();"' + |
| 60 ' onloaderror="onNavigationFailed();"' + |
| 61 ' onmessage="onChromeFrameMessage(arguments[0]);">' + |
| 62 ' </embed>' + |
| 63 ' </object>'); |
| 64 </script> |
| 60 <br> | 65 <br> |
| 61 <br> | 66 <br> |
| 62 <p>Test for PostMessage from the host browser to ChromeFrame and back</p> | 67 <p>Test for PostMessage from the host browser to ChromeFrame and back</p> |
| 63 <button onclick="document.ChromeFrame.postMessage('Message from button');"> | 68 <button onclick="document.ChromeFrame.postMessage('Message from button');"> |
| 64 Send message to frame</button> | 69 Send message to frame</button> |
| 65 <div id="statusPanel" style="border: 1px solid red; width: 100%"> | 70 <div id="statusPanel" style="border: 1px solid red; width: 100%"> |
| 66 Test running.... | 71 Test running.... |
| 67 </div> | 72 </div> |
| 68 </body> | 73 </body> |
| 69 </html> | 74 </html> |
| OLD | NEW |