Update of /cvsroot/monetdb/pathfinder/runtime/xrpc/admin
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv4155/admin
Modified Files:
Tag: xrpcdemo
xrpcwebclient.js
Log Message:
send xrpc request getdoc to get the logged req/res messages from
participating peers. this is necessary, as JS is not allowed to send
HTTP GET requests to a different domain.
U xrpcwebclient.js
Index: xrpcwebclient.js
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/runtime/xrpc/admin/xrpcwebclient.js,v
retrieving revision 1.10.4.7
retrieving revision 1.10.4.8
diff -u -d -r1.10.4.7 -r1.10.4.8
--- xrpcwebclient.js 11 Jun 2008 07:28:26 -0000 1.10.4.7
+++ xrpcwebclient.js 11 Jun 2008 19:41:47 -0000 1.10.4.8
@@ -12,8 +12,7 @@
{
clnt.sendReceive(posturl, method,
XRPC_REQUEST(module,moduleurl,method,arity,updating,call,timeout,mode),
callback);
}
-
-/* the main function you want to use: */
+
function XRPC_PART(geturl, /* Your XRPC server. Usually:
"http://yourhost:yourport/xrpc" */
callback) /* callback function to call with the XML response */
{
@@ -138,11 +137,11 @@
XRPCWebClient.prototype.sendReceive = function(posturl, method, request,
callback) {
try {
this.xmlhttp.open("POST", posturl, true);
- if (XRPCDEBUG) {
- //alert(request);
- //document.getElementById("messreq").value = request;
- messreqChanged(string2XML(request));
- }
+ //alert(request);
+ if (XRPCDEBUG && method != 'getdoc') {
+ //document.getElementById("messreq").value = request;
+ messreqChanged(string2XML(request));
+ }
this.xmlhttp.send(request);
var app = this;
@@ -154,7 +153,9 @@
{
if (XRPCDEBUG) {
if (app.xmlhttp.responseText) {
-
messresChanged(app.xmlhttp.responseXML? app.xmlhttp.responseXML:
string2XML(app.xmlhttp.responseText));
+
+
+ if(method != 'getdoc')
messresChanged(app.xmlhttp.responseXML? app.xmlhttp.responseXML:
string2XML(app.xmlhttp.responseText));
callback(app.xmlhttp.responseXML? app.xmlhttp.responseXML:
string2XML(app.xmlhttp.responseText));
}
}
@@ -181,7 +182,6 @@
var app = this;
this.xmlhttp.onreadystatechange = function() {
- //alert("back");
if (app.xmlhttp.readyState == 4 ) {
if (app.xmlhttp.status == 200 &&
app.xmlhttp.responseText.indexOf("!ERROR") < 0 &&
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins