DWRAction.execute(actionObj, params, callbackObj); 
dwr.webwork.execute(actionObj, params, callbackObj); 
dwr.webwork.execute = function(action, values, callbackObjOrName) {  var params = {};  if (dwr.webwork.isElement(values)) {    var element = $(values);    var elementName= element.nodeName.toLowerCase();    if (elementName == 'form') {      for (var i = 0; i < element.elements.length; i=i+1) {        var e = element.elements[i];        if (e.name != null && e.name != '') params[e.name] = dwr.util.getValue(e);      }    }    else {      params[element.name] = dwr.util.getValue(element);    }  }  else {    for (var prop in values) {      params[prop]= values[prop];    }  }  // prepare action invocation object  var actionObj = {};  if (typeof action == 'string') {    var lastIdx= action.lastIndexOf('/');    actionObj.executeResult = 'true';    if (lastIdx != -1) {      actionObj.namespace = action.substring(0, lastIdx);      actionObj.action = action.substring(lastIdx + 1);    }    else {      actionObj.namespace= '';      actionObj.action = action;    }  }  else {    actionObj= action;  }  // prepare the DWR callback object  var callbackObj = {};  var mustCall= false;  if (typeof callbackObjOrName == 'string') {    callbackObj.callback = function(dt) { dwr.webwork.callback(dt, eval(callbackObjOrName)); };    mustCall= true;  }  else if (typeof callbackObjOrName == 'function') {    callbackObj.callback = function(dt) { dwr.webwork.callback(dt, callbackObjOrName); };    mustCall= true;  }   else if (typeof callbackObjOrName == 'object' && typeof callbackObjOrName.callback == 'function') {    for (var prop in callbackObjOrName) {      callbackObj[prop] = callbackObjOrName[prop];    }    callbackObj.callback = function(dt) { dwr.webwork.callback(dt, callbackObjOrName.callback); };    mustCall= true;  }  if (mustCall) {    DWRAction.execute(actionObj, params, callbackObj);  }};
266	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/266/7f017a9df4378dc451e499e885e9a3f8da29a325/DWRActionUtil.js/buggy/java/org/directwebremoting/webwork/DWRActionUtil.js