diff --git a/scripts/socialbox.js b/scripts/socialbox.js
index e621fa4..837d6a7 100644
--- a/scripts/socialbox.js
+++ b/scripts/socialbox.js
@@ -97,8 +97,13 @@ function ajax_getvalues_refresh(request,user,user_email,secret) {
var nodes = xmldoc.getElementsByTagName("socialbox")[0].childNodes;
for (var i = 0; i < nodes.length; i++) {
var id = nodes[i].attributes[0].value;
- $("" + nodes[i].childNodes[0].nodeValue + "")
- .clone().hide().prependTo("#socialbox").slideDown();
+ $("" + nodes[i].childNodes[0].nodeValue + "")
+ .clone().hide().prependTo("#socialbox").slideDown();
+ }
+ if (nodes.length > 0) {
+ var span_nodes = $("#socialbox").children("span").each(function(idx, el) {
+ if (idx >= 50) el.remove(); // keep a maximum of 50 elements
+ });
}
}
if (xmldoc.getElementsByTagName("processes")[0] != undefined) {
diff --git a/scripts/webbuild/webbuild-2.js b/scripts/webbuild/webbuild-2.js
index 43afa64..a3d6090 100644
--- a/scripts/webbuild/webbuild-2.js
+++ b/scripts/webbuild/webbuild-2.js
@@ -74,7 +74,11 @@ function ajax_getvalues(request,confirm) {
if (o.xmlhttp.responseXML == undefined) {
// && xmlhttp.responseText == undefined) {
document.getElementById("status").innerHTML = "";
- document.getElementById("output").innerHTML = "
ERROR: there was a network connection problem.";
+ var errormsg = "
"; + errormsg += "ERROR: there was an error in the network connection or in the format of the XML response."; + errormsg += "