return value;
}
+function getInitialPort()
+{
+ return "38080";
+}
+
function getInitialProcessorURL()
{
- return getParam("processorURL", "http://phd.cs.unibo.it:8080/helm/servlet/uwobo/");
+ return getParam("processorURL", "http://mowgli.cs.unibo.it:58080/");
}
function getInitialGetterURL()
{
- return getParam("getterURL", "http://phd.cs.unibo.it:8081/");
+ return getParam("getterURL", "http://mowgli.cs.unibo.it:58081/");
}
function getUwoboURL()
if (ss.selectedIndex == 0) {
document.uwoboURL.elements[0].value = "";
} else {
- document.uwoboURL.elements[0].value = "http://" + ss.options[ss.selectedIndex].value + ":8080/helm/servlet/uwobo/";
+ document.uwoboURL.elements[0].value = "http://" + ss.options[ss.selectedIndex].value + ":58080/";
}
}
document.loadEscape.elements[0].checked = true;
}
+function getProfileParams()
+{
+ var password = document.getParamsProfilePassword.elements[0].value;
+ if (password != "") { password = "&password=" + password; };
+
+ top.result.location.replace(getUwoboURL() + "getparams?id=" + document.getParamsProfileID.elements[0].value + password);
+}
+
+function setProfileParam()
+{
+ var password = document.setParamProfilePassword.elements[0].value;
+ if (password != "") { password = "&password=" + password; };
+
+ top.result.location.replace(getUwoboURL() + "setparam?id=" + document.setParamProfileID.elements[0].value + "&key=" + document.setParamProfileKey.elements[0].value + "&value=" + document.setParamProfileValue.elements[0].value + password);
+}
+
+function createProfile()
+{
+ var id = document.createProfileID.elements[0].value;
+ if (id != "") { id = "&id=" + id; };
+
+ var password = document.createProfilePassword.elements[0].value;
+ if (password != "") { password = "&password=" + password; };
+
+ var clone = document.createProfileClone.elements[0].value;
+ if (clone != "") { clone = "&orig=" + clone; };
+
+ top.result.location.replace(getUwoboURL() + "createprofile?foo=x" + id + password + clone);
+}
+
+function removeProfile()
+{
+ var password = document.removeProfilePassword.elements[0].value;
+ if (password != "") { password = "&password=" + password; };
+
+ top.result.location.replace(getUwoboURL() + "removeprofile?id=" + document.removeProfileID.elements[0].value + password);
+}
+
function getStylesheetURL()
{
var s;
function loadStylesheet()
{
- top.result.location = getUwoboURL() + "add?xsluri=" + getStylesheetURL() + "&key=" + document.stylesheetKey.elements[0].value;
+ top.result.location.replace(getUwoboURL() + "add?bind=" + document.stylesheetKey.elements[0].value + "," + getStylesheetURL());
}
function removeStylesheet()
{
- top.result.location = getUwoboURL() + "remove?key=" + document.stylesheetKey.elements[0].value;
+ top.result.location.replace(getUwoboURL() + "remove?keys=" + document.stylesheetKey.elements[0].value);
}
function removeAllStylesheets()
{
- top.result.location = getUwoboURL() + "remove";
+ top.result.location.replace(getUwoboURL() + "remove?keys=");
}
function reloadStylesheet()
{
- top.result.location = getUwoboURL() + "reload?key=" + document.stylesheetKey.elements[0].value;
+ top.result.location.replace(getUwoboURL() + "reload?keys=" + document.stylesheetKey.elements[0].value);
+}
+
+function reloadAllStylesheets()
+{
+ top.result.location.replace(getUwoboURL() + 'reload?keys=');
}
function loadAllPredefined()
{
with (document.predefinedStylesheets.elements[0]) {
var i;
+ var request = "";
for (i = 1; i < length; i++)
- open(getUwoboURL() +
- "add?xsluri=" + escape((getPredefinedStylesheetUseGetter(i) == "true" ? (getGetterURL() + "getxslt?uri=") : "") + getPredefinedStylesheetURI(i)) +
- "&key=" + getPredefinedStylesheetKey(i),
- getPredefinedStylesheetKey(i),
- "toolbar=0,location=0,directories=0,status=0,menubar=0,width=400,height=200");
+ request +=
+ (request == "" ? "" : "&") +
+ "bind=" + getPredefinedStylesheetKey(i) + "," + escape((getPredefinedStylesheetUseGetter(i) == "true" ? (getGetterURL() + "getxslt?uri=") : "") + getPredefinedStylesheetURI(i));
+ top.result.location.replace(getUwoboURL() + "add?" + request);
}
}
{
with (document.predefinedStylesheets.elements[0]) {
var i;
+ var request = "";
for (i = 1; i < length; i++)
- open(getUwoboURL() + "remove?key=" + getPredefinedStylesheetKey(i),
- getPredefinedStylesheetKey(i),
- "toolbar=0,location=0,directories=0,status=0,menubar=0,width=400,height=200");
+ request += getPredefinedStylesheetKey(i) + (i == length - 1 ? "" : ",");
+ top.result.location.replace(getUwoboURL() + "remove?keys=" + request);
}
}
url += "¶m." + paramList[i];
}
- top.result.location = url;
+ top.result.location.replace(url);
}