Changeset 866
- Timestamp:
- 08/21/07 23:28:01 (1 year ago)
- Files:
-
- trunk/examples/docroot/json-rpc/index.php (modified) (2 diffs)
- trunk/src/main/javascript/stub-base.js (modified) (1 diff)
- trunk/src/main/javascript/stub-json-rpc-debug.js (modified) (2 diffs)
- trunk/src/main/javascript/stub-json-rpc.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/examples/docroot/json-rpc/index.php
r775 r866 10 10 * @author Stephan Schmidt <schst@stubbles.net> 11 11 */ 12 /** 13 * Load Stubbles 14 */ 15 require '../bootstrap-stubbles.php'; 16 17 stubClassLoader::load('net.stubbles.ipo.request.stubWebRequest', 18 'net.stubbles.ipo.session.stubPHPSession'); 19 20 $request = new stubWebRequest(); 21 $session = new stubPHPSession($request, session_name()); 12 22 13 23 $propFile = '../../examples.properties'; … … 59 69 }; 60 70 var nameServ = new NameService(NameCallbackObj); 71 72 // make sure, that the session id is used for all requests 73 stubbles.json.rpc.appendToURL = '&<?php echo $session->getName(); ?>=<?php echo $session->getId(); ?>'; 61 74 </script> 62 75 trunk/src/main/javascript/stub-base.js
r514 r866 5 5 */ 6 6 var stubbles = {}; 7 stubbles.json = {};8 stubbles.json.rpc = {};trunk/src/main/javascript/stub-json-rpc-debug.js
r666 r866 1 /** 2 * Namespaces for JSON-RPC 3 */ 4 stubbles.json = {}; 5 stubbles.json.rpc = {}; 6 stubbles.json.rpc.appendToURL = null; 1 7 /** 2 8 * Stubbles JSON-RPC client … … 56 62 57 63 var postUrl = this.serviceURL; 64 if (stubbles.json.rpc.appendToURL != null) { 65 postUrl = postUrl + stubbles.json.rpc.appendToURL; 66 } 58 67 var jsonRpcReq = { 59 68 'method': classAndMethod, trunk/src/main/javascript/stub-json-rpc.js
r514 r866 1 /** 2 * Namespaces for JSON-RPC 3 */ 4 stubbles.json = {}; 5 stubbles.json.rpc = {}; 6 stubbles.json.rpc.appendToURL = null; 1 7 /** 2 8 * Stubbles JSON-RPC client … … 52 58 53 59 var postUrl = this.serviceURL; 60 if (stubbles.json.rpc.appendToURL != null) { 61 postUrl = postUrl + stubbles.json.rpc.appendToURL; 62 } 54 63 var jsonRpcReq = { 55 64 'method': classAndMethod,
