| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <title>SRPC Simple Plug-in</title> | 4 <title>SRPC Simple Plug-in</title> |
| 5 <META HTTP-EQUIV="Pragma" CONTENT="no-cache" /> | 5 <META HTTP-EQUIV="Pragma" CONTENT="no-cache" /> |
| 6 <META HTTP-EQUIV="Expires" CONTENT="-1" /> | 6 <META HTTP-EQUIV="Expires" CONTENT="-1" /> |
| 7 </head> | 7 </head> |
| 8 <body> | 8 <body> |
| 9 <script type="text/javascript"> | 9 <script type="text/javascript"> |
| 10 //<![CDATA[ | 10 //<![CDATA[ |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 </p> | 36 </p> |
| 37 <p> | 37 <p> |
| 38 <button id='fortytwo' onclick='fortytwo()' disabled='disabled'> | 38 <button id='fortytwo' onclick='fortytwo()' disabled='disabled'> |
| 39 Call fortytwo()</button> | 39 Call fortytwo()</button> |
| 40 <button id='helloworld' onclick='helloworld()' disabled='disabled'> | 40 <button id='helloworld' onclick='helloworld()' disabled='disabled'> |
| 41 Call helloworld()</button> | 41 Call helloworld()</button> |
| 42 | 42 |
| 43 <embed name="nacl_module" | 43 <embed name="nacl_module" |
| 44 id="pluginobj" | 44 id="pluginobj" |
| 45 width=0 height=0 | 45 width=0 height=0 |
| 46 type="application/x-nacl-srpc" /> | 46 type="application/x-nacl" /> |
| 47 </p> | 47 </p> |
| 48 | 48 |
| 49 <p>If the plug-in is working correctly, a click on the "Load nexe" button | 49 <p>If the plug-in is working correctly, a click on the "Load nexe" button |
| 50 should change status to "SUCCESS", and allow clicking the other buttons. </p> | 50 should change status to "SUCCESS", and allow clicking the other buttons. </p> |
| 51 | 51 |
| 52 <p> Clicking on the "Call fortytwo" button | 52 <p> Clicking on the "Call fortytwo" button |
| 53 should open a popup dialog containing <b>42</b> as value.</p> | 53 should open a popup dialog containing <b>42</b> as value.</p> |
| 54 | 54 |
| 55 <p> Clicking on the "Call helloworld" button | 55 <p> Clicking on the "Call helloworld" button |
| 56 should open a popup dialog containing <b>hello, world</b> as value.</p> | 56 should open a popup dialog containing <b>hello, world</b> as value.</p> |
| (...skipping 26 matching lines...) Expand all Loading... |
| 83 | 83 |
| 84 var loadNexe = function(url) { | 84 var loadNexe = function(url) { |
| 85 nacl_embed = document.getElementById('pluginobj'); | 85 nacl_embed = document.getElementById('pluginobj'); |
| 86 nacl_embed.__urlAsNaClDesc(url, new Callback()); | 86 nacl_embed.__urlAsNaClDesc(url, new Callback()); |
| 87 } | 87 } |
| 88 //]]> | 88 //]]> |
| 89 </script> | 89 </script> |
| 90 | 90 |
| 91 </body> | 91 </body> |
| 92 </html> | 92 </html> |
| OLD | NEW |