From a5feb0682a95065e354406c047fa623c1a811db8 Mon Sep 17 00:00:00 2001 From: Charles Krinke Date: Wed, 13 May 2009 01:27:23 +0000 Subject: Thank you kindly, BlueWall sir, for a patch that: Adding a jsonp wrapper to the user supplied status report uri if the key "callback" exists. It will work with many javascript toolkits to provide an ajax callback to allow the browser to update stats reports without the intervention of an intermediate server. --- OpenSim/Region/Application/OpenSimBase.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'OpenSim/Region/Application/OpenSimBase.cs') diff --git a/OpenSim/Region/Application/OpenSimBase.cs b/OpenSim/Region/Application/OpenSimBase.cs index 21fd5dd..53cba9f 100644 --- a/OpenSim/Region/Application/OpenSimBase.cs +++ b/OpenSim/Region/Application/OpenSimBase.cs @@ -861,8 +861,10 @@ namespace OpenSim } /// - /// Handler to supply the current extended status of this sim + /// Handler to supply the current extended status of this sim to a user configured URI /// Sends the statistical data in a json serialization + /// If the request contains a key, "callback" the response will be wrappend in the + /// associated value for jsonp used with ajax/javascript /// public class UXSimStatusHandler : IStreamedRequestHandler { @@ -894,7 +896,7 @@ namespace OpenSim public string Path { - // This is for the OpenSim instance and is the osSecret hashed + // This is for the OpenSim instance and is the user provided URI get { return "/" + osUXStatsURI + "/"; } } } -- cgit v1.1