return value;
}
+function getInitialPort()
+{
+ return "68080";
+}
+
function getInitialProcessorURL()
{
return getParam("processorURL", "http://phd.cs.unibo.it:8080/helm/servlet/uwobo/");
function removeAllStylesheets()
{
- top.result.location.replace(getUwoboURL() + "remove");
+ top.result.location.replace(getUwoboURL() + "remove?keys=");
}
function reloadStylesheet()
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 = "dummy=0";
+ var request = "";
for (i = 1; i < length; i++)
request +=
- "&bind=" + getPredefinedStylesheetKey(i) + "," + escape((getPredefinedStylesheetUseGetter(i) == "true" ? (getGetterURL() + "getxslt?uri=") : "") + getPredefinedStylesheetURI(i));
+ (request == "" ? "" : "&") +
+ "bind=" + getPredefinedStylesheetKey(i) + "," + escape((getPredefinedStylesheetUseGetter(i) == "true" ? (getGetterURL() + "getxslt?uri=") : "") + getPredefinedStylesheetURI(i));
top.result.location.replace(getUwoboURL() + "add?" + request);
}
}
var request = "";
for (i = 1; i < length; i++)
- request += getPredefinedStylesheetKey(i) + ",";
+ request += getPredefinedStylesheetKey(i) + (i == length - 1 ? "" : ",");
top.result.location.replace(getUwoboURL() + "remove?keys=" + request);
}
}