function doUpdate() { $.ajax( { type: "GET", async: "true", timeout: 50000, mimeType: "text/plain", url: SERVER_URL + "2" + PARAM_SEP + g_sessionID, success: function (data) { handleResponse(data); setTimeout("doUpdate()", 100); }, error: function (xhr, error, errorstr) { setTimeout("doUpdate()", 100); } }); } function handleResponse(data) { data = data.replace(new RegExp("\\n", "g"), ""); debugger; var obj = jsonParse(data); alert(dump(obj)); obj = obj["objs"]; for (var i = 0; i < obj.length; i++) { var o = obj[i]; switch (parseInt(o.action)) { case 4: //debugger; for (var j = 0; j < o["objs"].length; j++) { var u = o["objs"][j]; var li = "