response.appendContentString("function " + id + "Update() { new Ajax.Updater('" + id + "', $(" + id + ").getAttribute('updateUrl'), ");
response.appendContentString(id + "Update = function() { new Ajax.Updater('" + id + "', $(" + id + ").getAttribute('updateUrl'), ");
    public void appendToResponse(WOResponse response, WOContext context) {        WOComponent component = context.component();        String elementName = (String) valueForBinding("elementName", "span", component);        String id = containerID(context);        response.appendContentString("<" + elementName + " ");        appendTagAttributeToResponse(response, "id", id);        appendTagAttributeToResponse(response, "class", valueForBinding("class", component));        appendTagAttributeToResponse(response, "updateUrl", context.componentActionURL());        appendTagAttributeToResponse(response, "woElementID", context.elementID());        response.appendContentString(">");        if(hasChildrenElements()) {            appendChildrenToResponse(response, context);        }        response.appendContentString("</" + elementName + ">");        super.appendToResponse(response, context);        NSDictionary options = createAjaxOptions(component);        Object frequency = valueForBinding("frequency", component);        String observeFieldID = (String)valueForBinding("observeFieldID", component);                boolean skipFunction = frequency == null && observeFieldID == null && booleanValueForBinding("skipFunction", false, component);        if (!skipFunction) {          response.appendContentString("<script type = \"text/javascript\" language = \"javascript\"><!--\n");          if (frequency != null) {            response.appendContentString("new Ajax.PeriodicalUpdater('" + id + "', $(" + id + ").getAttribute('updateUrl'), ");            AjaxOptions.appendToResponse(options, response, context);            response.appendContentString(");");          }          if (observeFieldID != null) {            AjaxObserveField.appendToResponse(response, context, observeFieldID, id, false, null);          }          response.appendContentString("function " + id + "Update() { new Ajax.Updater('" + id + "', $(" + id + ").getAttribute('updateUrl'), ");          AjaxOptions.appendToResponse(options, response, context);          response.appendContentString("); }");          response.appendContentString("//--></script>");        }    }