* @param function The script.aculo.us effect to employ
* @param options A string containing options to pass to the script.aculo.us effect, as specified at http://script.aculo.us/
*/
private static void callEffect(String elementId, String function, String options)
{
ScriptBuffer script = new ScriptBuffer();
script.appendScript("new Effect.").appendScript(function).appendScript("('").appendScript(elementId).appendScript("'");
if (options != null && options.length() > 0)
{
script.appendScript(", ").appendScript(options);
}
script.appendScript(");");
ScriptSessions.addScript(script);
}