| <!doctype html> |
| <html> |
| <head> |
| <title>easyXDM</title> |
| <script type="text/javascript" src="../easyXDM.debug.js"> |
| </script> |
| <script type="text/javascript"> |
| /** |
| * Request the use of the JSON object |
| */ |
| easyXDM.DomHelper.requiresJSON("../json2.js"); |
| </script> |
| <script type="text/javascript"> |
| var remote = new easyXDM.Rpc(/** The channel configuration*/{ |
| local: "../name.html" |
| }, /** The configuration */ { |
| /** |
| * |
| * @param {Object} rpc A JSON-RPC 2.0 request object |
| * @param {Function} reply The callback method. Takes a single JSON-RPC 2.0 response object. |
| */ |
| handle: function(rpc, reply){ |
| alert("requested to execute procedure '" + rpc.method + "'"); |
| } |
| }); |
| </script> |
| </head> |
| <body> |
| <script type="text/javascript"> |
| document.write("Domain: " + location.host); |
| </script> |
| <!-- easyXDM.Debug.trace(msg) will output its messages to any element with the id "log" --> |
| <div id="log" style="height:100px;border:1px dotted black;overflow:auto"> |
| </div> |
| </body> |
| </html> |