code: function setModuleData ( resId, paramObj, subPath ) {
    log( 'setModuleData', resId+"/"+subPath+" => "+JSON.stringify(paramObj) );
    var data = getSubData( paramObj, subPath );
    var updHook = getHook( resId, "setData" ); 
    if ( ( updHook != null ) && ( updHook.resType == "html" ) ) {  
      // update html type view
      $( "#"+resId ).html( data );
      log( 'setModuleData', 'loadResourcesHTajax' );
    } else if ( ( updHook != null ) && ( updHook.updFunction != null ) && ( updHook.updFunction != "" ) ) {
      // update module type view
      var callStr = updHook.updFunction+'( "'+resId+'", '+JSON.stringify( data )+' )';
      log( 'setModuleData', callStr );
      eval( callStr );  
    } else {
      log( 'setModuleData', "do nothing for "+resId );
    }
  }
docs: =====================================================================================================