blob: 59a411ad38ad521722ee836d630f8da9ca0d7f98 [file] [log] [blame]
genia.likes.science@gmail.comc5f82a22013-05-08 02:44:35 -07001<!doctype html>
2<html>
3 <head>
4 <title>easyXDM</title>
5 <script type="text/javascript" src="../easyXDM.debug.js">
6 </script>
7 <script type="text/javascript">
8 /**
9 * Request the use of the JSON object
10 */
11 easyXDM.DomHelper.requiresJSON("../json2.js");
12 </script>
13 <script type="text/javascript">
14 var remote = new easyXDM.Rpc(/** The channel configuration*/{
15 local: "../name.html"
16 }, /** The configuration */ {
17 /**
18 *
19 * @param {Object} rpc A JSON-RPC 2.0 request object
20 * @param {Function} reply The callback method. Takes a single JSON-RPC 2.0 response object.
21 */
22 handle: function(rpc, reply){
23 alert("requested to execute procedure '" + rpc.method + "'");
24 }
25 });
26 </script>
27 </head>
28 <body>
29 <script type="text/javascript">
30 document.write("Domain: " + location.host);
31 </script>
32 <!-- easyXDM.Debug.trace(msg) will output its messages to any element with the id "log" -->
33 <div id="log" style="height:100px;border:1px dotted black;overflow:auto">
34 </div>
35 </body>
36</html>